diff options
author | Jonas Hoersch <coroa@online.de> | 2013-10-04 10:02:30 +0200 |
---|---|---|
committer | Evgeny Egorochkin <phreedom@yandex.ru> | 2013-10-21 20:58:40 +0300 |
commit | a917b7b0112ddb8473bb27eae16f943ef63ba9f2 (patch) | |
tree | 4b7921e832dc1cbded62a4bc73fa86e9595eefa6 /pkgs/misc/my-env/default.nix | |
parent | 6cb91c33d0a66fe66e8f23206795e55b65735c0c (diff) | |
download | nixpkgs-a917b7b0112ddb8473bb27eae16f943ef63ba9f2.tar nixpkgs-a917b7b0112ddb8473bb27eae16f943ef63ba9f2.tar.gz nixpkgs-a917b7b0112ddb8473bb27eae16f943ef63ba9f2.tar.bz2 nixpkgs-a917b7b0112ddb8473bb27eae16f943ef63ba9f2.tar.lz nixpkgs-a917b7b0112ddb8473bb27eae16f943ef63ba9f2.tar.xz nixpkgs-a917b7b0112ddb8473bb27eae16f943ef63ba9f2.tar.zst nixpkgs-a917b7b0112ddb8473bb27eae16f943ef63ba9f2.zip |
my-env: pull --norc shell flag out into shell parameter
As zsh's corresponding flag is called --no-rcs, the build environment couldn't be configured to use zsh at all. Even then the custom PS1 won't work on zsh, but it's usable enough. Close #1040.
Diffstat (limited to 'pkgs/misc/my-env/default.nix')
-rw-r--r-- | pkgs/misc/my-env/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/misc/my-env/default.nix b/pkgs/misc/my-env/default.nix index ac2dc7f8cda..1c0dc0cbfe9 100644 --- a/pkgs/misc/my-env/default.nix +++ b/pkgs/misc/my-env/default.nix @@ -59,7 +59,7 @@ { mkDerivation, substituteAll, pkgs }: { stdenv ? pkgs.stdenv, name, buildInputs ? [] , propagatedBuildInputs ? [], gcc ? stdenv.gcc, cTags ? [], extraCmds ? "" - , cleanupCmds ? "", shell ? "${pkgs.bashInteractive}/bin/bash"}: + , cleanupCmds ? "", shell ? "${pkgs.bashInteractive}/bin/bash --norc"}: mkDerivation { # The setup.sh script from stdenv will expect the native build inputs in @@ -146,8 +146,8 @@ mkDerivation { EOF mkdir -p $out/bin - sed -e s,@shell@,${shell}, -e s,@myenvpath@,$out/dev-envs/${name}, \ - -e s,@name@,${name}, ${./loadenv.sh} > $out/bin/load-env-${name} + sed -e 's,@shell@,${shell},' -e s,@myenvpath@,$out/dev-envs/${name}, \ + -e 's,@name@,${name},' ${./loadenv.sh} > $out/bin/load-env-${name} chmod +x $out/bin/load-env-${name} ''; } |