mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
Pass *_proxy vars to bootstrap fetchurl
This commit is contained in:
parent
a2c85b2ef8
commit
048be62484
@ -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 New Issue
Block a user