diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-05-31 09:52:39 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-05-31 09:52:39 +0000 |
commit | bb93fa69fa9102df48199c516f3dc72e0c625888 (patch) | |
tree | 8bfed35e028be8a5aaa7fc73f9ecc530ffeafc33 /pkgs/build-support | |
parent | 046aeb12b0be90e51dec3ba437cff244d7aa109e (diff) |
* fetchurl: use standard proxy-related variables from the caller such
as `http_proxy'. svn path=/nixpkgs/trunk/; revision=5347
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/fetchurl/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index 385a0a4c650c8..e4a4694404ea8 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -23,4 +23,10 @@ stdenv.mkDerivation { if sha256 != "" then sha256 else if sha1 != "" then sha1 else md5; inherit url; + + # 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. + impureEnvVars = ["http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy"]; } |