From 3747daf3422a6ecd1da9ca867e474fd1ddcb9604 Mon Sep 17 00:00:00 2001 From: ostylk Date: Tue, 10 Aug 2021 12:39:17 +0200 Subject: [PATCH] conda: invoke bash login shell to source /etc/profile The `profile` parameter in `buildFHSUserEnv` is used to create an /etc/profile file which should be sourced by bash. However, the default runScript is a non-login bash which does not source /etc/profile. Therefore the conda package breaks, as a script which is required for `conda activate`, is not sourced. Also the installationPath parameter is ignored as it is setup in the /etc/profile file. --- pkgs/tools/package-management/conda/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/package-management/conda/default.nix b/pkgs/tools/package-management/conda/default.nix index 57b4d17fdfd..bc11203bb4a 100644 --- a/pkgs/tools/package-management/conda/default.nix +++ b/pkgs/tools/package-management/conda/default.nix @@ -66,6 +66,8 @@ in source ${installationPath}/etc/profile.d/conda.sh ''; + runScript = "bash -l"; + meta = { description = "Conda is a package manager for Python"; homepage = "https://conda.io/";