* fetchurl: use standard proxy-related variables from the caller such

as `http_proxy'.

svn path=/nixpkgs/trunk/; revision=5347
This commit is contained in:
Eelco Dolstra 2006-05-31 09:52:39 +00:00
parent 046aeb12b0
commit bb93fa69fa

View file

@ -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"];
}