mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +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)
|
if (runEnv)
|
||||||
setenv("IN_NIX_SHELL", "1", 1);
|
setenv("IN_NIX_SHELL", pure ? "pure" : "impure", 1);
|
||||||
|
|
||||||
for (auto & expr : exprs) {
|
for (auto & expr : exprs) {
|
||||||
// Instantiate.
|
// Instantiate.
|
||||||
|
|
Loading…
Reference in a new issue