about summary refs log tree commit diff
path: root/pkgs/build-support/fetchurl
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-09-17 21:50:01 +0200
committerGitHub <noreply@github.com>2016-09-17 21:50:01 +0200
commit61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a (patch)
treeacc82d042348f7e053a473ebc3999062e6b31f1a /pkgs/build-support/fetchurl
parentaa7ab011315069ac4d3d41e2b0ed091b6aa59a7e (diff)
downloadnixlib-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar
nixlib-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.gz
nixlib-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.bz2
nixlib-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.lz
nixlib-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.xz
nixlib-61462c94e630cdfc6553eb9b0a0b0ad4f85f0b7a.tar.zst
nixlib-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/fetchurl')
-rw-r--r--pkgs/build-support/fetchurl/default.nix8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix
index a7c76737e1ad..00f485ce6975 100644
--- a/pkgs/build-support/fetchurl/default.nix
+++ b/pkgs/build-support/fetchurl/default.nix
@@ -20,13 +20,7 @@ let
   # "gnu", etc.).
   sites = builtins.attrNames mirrors;
 
-  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"
-
+  impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars ++ [
     # This variable allows the user to pass additional options to curl
     "NIX_CURL_FLAGS"