mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
nix-build: extend the meaning of $IN_NIX_SHELL
An equivalent was originally filed against the perl version: https://github.com/NixOS/nix/pull/933
This commit is contained in:
parent
80ebc553ec
commit
1bffd83e1a
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue