diff options
author | Profpatsch <mail@profpatsch.de> | 2016-09-17 21:50:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-17 21:50:01 +0200 |
commit | 61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a (patch) | |
tree | acc82d042348f7e053a473ebc3999062e6b31f1a /pkgs/build-support/fetchgit | |
parent | aa7ab011315069ac4d3d41e2b0ed091b6aa59a7e (diff) |
lib/fetchers.nix: factor out impure proxy vars (#18702)
Apparently everyone just copied those variables, instead of creating a library constant for them. Some even removed the comment. -.-
Diffstat (limited to 'pkgs/build-support/fetchgit')
-rw-r--r-- | pkgs/build-support/fetchgit/default.nix | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index 7f98c97fc55b3..105b3d56bf421 100644 --- a/pkgs/build-support/fetchgit/default.nix +++ b/pkgs/build-support/fetchgit/default.nix @@ -56,13 +56,9 @@ stdenv.mkDerivation { GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt"; - impureEnvVars = [ - # We borrow these environment variables from the caller to allow - # easy proxy configuration. This is impure, but a fixed-output - # derivation like fetchurl is allowed to do so since its result is - # by definition pure. - "http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy" "GIT_PROXY_COMMAND" "SOCKS_SERVER" - ]; + impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars ++ [ + "GIT_PROXY_COMMAND" "SOCKS_SERVER" + ]; preferLocalBuild = true; } |