Skip to content

Commit

Permalink
nix-build: extend the meaning of $IN_NIX_SHELL
Browse files Browse the repository at this point in the history
An equivalent was originally filed against the perl version:
NixOS#933
  • Loading branch information
vcunat committed Aug 11, 2016
1 parent 80ebc55 commit 1bffd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix-build/nix-build.cc
Expand Up @@ -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.
Expand Down

0 comments on commit 1bffd83

Please sign in to comment.