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. -.-
This commit is contained in:
Profpatsch
2016-09-17 21:50:01 +02:00
committed by GitHub
parent aa7ab01131
commit 61462c94e6
14 changed files with 29 additions and 72 deletions
+1 -3
View File
@@ -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;