aboutsummaryrefslogtreecommitdiff
path: root/src/nix-build
diff options
context:
space:
mode:
authorCarlos D <carlos.dagostino@gmail.com>2020-02-14 16:11:22 +1100
committerCarlos D <carlos.dagostino@gmail.com>2020-02-14 16:11:22 +1100
commitd78141a886383c38afb9fb294eec6fac0b74986e (patch)
treec1e7366b775a5906cf20e19c57f3af6dc5e6f0c7 /src/nix-build
parent9af10b753c8a636f828b148fc3a9aecd1c0067fa (diff)
Pass through http proxy env vars in pure shell
Diffstat (limited to 'src/nix-build')
-rwxr-xr-xsrc/nix-build/nix-build.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 205165a4c..e602ea555 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -97,7 +97,11 @@ static void _main(int argc, char * * argv)
std::string outLink = "./result";
// 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;
for (int i = 1; i < argc; ++i)