about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nix-build/nix-build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 4d80a0c533a5..ee6d2699af50 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -332,7 +332,7 @@ int main(int argc, char ** argv)
         }
 
         if (runEnv)
-            setenv("IN_NIX_SHELL", "1", 1);
+            setenv("IN_NIX_SHELL", pure ? "pure" : "impure", 1);
 
         for (auto & expr : exprs) {
             // Instantiate.