Skip to content

Commit 1bffd83

Browse files
committed
nix-build: extend the meaning of $IN_NIX_SHELL
An equivalent was originally filed against the perl version: #933
1 parent 80ebc55 commit 1bffd83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nix-build/nix-build.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ int main(int argc, char ** argv)
332332
}
333333

334334
if (runEnv)
335-
setenv("IN_NIX_SHELL", "1", 1);
335+
setenv("IN_NIX_SHELL", pure ? "pure" : "impure", 1);
336336

337337
for (auto & expr : exprs) {
338338
// Instantiate.

0 commit comments

Comments
 (0)