diff options
author | Shea Levy <shea@shealevy.com> | 2013-12-30 07:58:14 -0500 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-12-30 16:59:24 +0100 |
commit | 5ba5993470a6ad532fc8e842084a574a88876b0a (patch) | |
tree | bd0a7d95ce2ce8f973b97614af9b53ba86a097b2 /scripts | |
parent | b352fe2775d09993add893ebff8c0c4c8369182a (diff) | |
download | guix-5ba5993470a6ad532fc8e842084a574a88876b0a.tar.gz |
nix-shell --pure: Don't clear IN_NIX_SHELL
Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/nix-build.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index fe22058f62..8b66e38a9a 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -185,7 +185,7 @@ foreach my $expr (@exprs) { # Set the environment. if ($pure) { foreach my $name (keys %ENV) { - next if $name eq "HOME" || $name eq "USER" || $name eq "LOGNAME" || $name eq "DISPLAY" || $name eq "PATH" || $name eq "TERM"; + next if $name eq "HOME" || $name eq "USER" || $name eq "LOGNAME" || $name eq "DISPLAY" || $name eq "PATH" || $name eq "TERM" || $name eq "IN_NIX_SHELL"; delete $ENV{$name}; } # NixOS hack: prevent /etc/bashrc from sourcing /etc/profile. |