diff options
-rwxr-xr-x | scripts/nix-build.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 404133ed8e83..b3a0f400f89c 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -188,6 +188,8 @@ foreach my $expr (@exprs) { $ENV{'NIX_STORE'} = $Nix::Config::storeDir; $ENV{$_} = $drv->{env}->{$_} foreach keys %{$drv->{env}}; + $ENV{'IN_NIX_SHELL'} = 1; + # Run a shell using the derivation's environment. For # convenience, source $stdenv/setup to setup additional # environment variables and shell functions. Also don't lose |