Pass *_proxy vars to bootstrap fetchurl
This commit is contained in:
parent
a2c85b2ef8
commit
048be62484
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue