mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06:16 +02:00
Pass through http proxy env vars in pure shell
This commit is contained in:
parent
9af10b753c
commit
d78141a886
1 changed files with 5 additions and 1 deletions
|
@ -97,7 +97,11 @@ static void _main(int argc, char * * argv)
|
||||||
std::string outLink = "./result";
|
std::string outLink = "./result";
|
||||||
|
|
||||||
// List of environment variables kept for --pure
|
// List of environment variables kept for --pure
|
||||||
std::set<string> keepVars{"HOME", "USER", "LOGNAME", "DISPLAY", "PATH", "TERM", "IN_NIX_SHELL", "TZ", "PAGER", "NIX_BUILD_SHELL", "SHLVL"};
|
std::set<string> keepVars{
|
||||||
|
"HOME", "USER", "LOGNAME", "DISPLAY", "PATH", "TERM",
|
||||||
|
"IN_NIX_SHELL", "TZ", "PAGER", "NIX_BUILD_SHELL", "SHLVL",
|
||||||
|
"http_proxy", "https_proxy", "ftp_proxy", "all_proxy", "no_proxy"
|
||||||
|
};
|
||||||
|
|
||||||
Strings args;
|
Strings args;
|
||||||
for (int i = 1; i < argc; ++i)
|
for (int i = 1; i < argc; ++i)
|
||||||
|
|
Loading…
Reference in a new issue