Pass *_proxy vars to bootstrap fetchurl

This commit is contained in:
Shea Levy 2014-07-16 01:11:24 -04:00 committed by Eelco Dolstra
parent a2c85b2ef8
commit 048be62484

View file

@ -34,4 +34,12 @@ derivation {
# Don't build in a chroot because Nix's dependencies may not be there.
__noChroot = true;
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"
];
}