forked from mirrors/nixpkgs
* fetchurl: use standard proxy-related variables from the caller such
as `http_proxy'. svn path=/nixpkgs/trunk/; revision=5347
This commit is contained in:
parent
046aeb12b0
commit
bb93fa69fa
|
@ -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"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue