about summary refs log tree commit diff
path: root/scripts/nix-build.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-07-11T12·40+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-07-11T12·40+0200
commited09d0c0a436a412893ffe817c842827abbec6ed (patch)
tree9df7179545f5fe1b3b201630adbc2f674abb0cb7 /scripts/nix-build.in
parent656390062a9b612df3238f9e6a0d5ce89c3de21c (diff)
nix-build --run-env: Always use Bash
Fixes #113.
Fixes #131.
Diffstat (limited to 'scripts/nix-build.in')
-rwxr-xr-xscripts/nix-build.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in
index 4ceec4df652a..fb70331bfa13 100755
--- a/scripts/nix-build.in
+++ b/scripts/nix-build.in
@@ -186,7 +186,7 @@ foreach my $expr (@exprs) {
             'set +e; ' .
             'PS1="\n\[\033[1;32m\][nix-build:\w]$\[\033[0m\] "; ' .
             $envCommand);
-        exec($ENV{SHELL}, "--rcfile", $rcfile);
+        exec($ENV{NIX_BUILD_SHELL} // "bash", "--rcfile", $rcfile);
         die;
     }