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/fetchhg | |
parent | aa7ab011315069ac4d3d41e2b0ed091b6aa59a7e (diff) | |
download | nixpkgs-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar nixpkgs-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.gz nixpkgs-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.bz2 nixpkgs-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.lz nixpkgs-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.xz nixpkgs-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.zst nixpkgs-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.zip |
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/fetchhg')
-rw-r--r-- | pkgs/build-support/fetchhg/default.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/build-support/fetchhg/default.nix b/pkgs/build-support/fetchhg/default.nix index 214e9b1387b..79f610166a7 100644 --- a/pkgs/build-support/fetchhg/default.nix +++ b/pkgs/build-support/fetchhg/default.nix @@ -6,9 +6,7 @@ stdenv.mkDerivation { builder = ./builder.sh; buildInputs = [mercurial]; - impureEnvVars = [ - "http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy" - ]; + impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars; # Nix <= 0.7 compatibility. id = md5; |