mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
Set IN_NIX3_SHELL env variable in "nix shell"
Solving issue https://github.com/NixOS/nix/issues/3862 Co-authored-by: Alexander Bantyev <balsoft@balsoft.ru>
This commit is contained in:
parent
480c883f36
commit
a83caea829
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ struct CmdShell : InstallablesCommand, MixEnvironment
|
||||||
}
|
}
|
||||||
|
|
||||||
setenv("PATH", concatStringsSep(":", unixPath).c_str(), 1);
|
setenv("PATH", concatStringsSep(":", unixPath).c_str(), 1);
|
||||||
|
setenv("IN_NIX3_SHELL", "1", 1);
|
||||||
|
|
||||||
Strings args;
|
Strings args;
|
||||||
for (auto & arg : command) args.push_back(arg);
|
for (auto & arg : command) args.push_back(arg);
|
||||||
|
|
Loading…
Reference in a new issue