summaryrefslogtreecommitdiffstats
path: root/lib/fetchers.nix
diff options
context:
space:
mode:
authorramboman <ramboman777@gmail.com>2024-04-26 07:03:18 +0000
committerYour Name <you@example.com>2024-04-26 14:30:55 -0400
commit3ce10797535119f1e84770a97395f8d0afe18950 (patch)
tree5953e6805660b3766f10df90629a2efa72754cba /lib/fetchers.nix
parent8b4a7f28ba4ab817f832d716728fbcebc7edccd7 (diff)
lib.fetchers: Add uppercase proxy environment variables
The [Nix installer](https://github.com/NixOS/nix/blob/84e0c464f11b34fa7d5ca26dcf98a91c4d596d59/scripts/install-systemd-multi-user.sh#L38) and the [documentation](https://github.com/NixOS/nix/blob/84e0c464f11b34fa7d5ca26dcf98a91c4d596d59/doc/manual/src/installation/env-variables.md#L54-L56) state that they support uppercase proxy environment variables. [lib/fetchers.nix](https://github.com/NixOS/nixpkgs/blob/165090ed665fd56e1cabc4e2ac3b3b5524596a6a/lib/fetchers.nix#L10) only supports lowercase proxy environment variables. Fix: [nix#10491](https://github.com/NixOS/nix/issues/10491)
Diffstat (limited to 'lib/fetchers.nix')
-rw-r--r--lib/fetchers.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fetchers.nix b/lib/fetchers.nix
index 1107353b51dd..e94c611299be 100644
--- a/lib/fetchers.nix
+++ b/lib/fetchers.nix
@@ -8,6 +8,7 @@
# 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"
+ "HTTP_PROXY" "HTTPS_PROXY" "FTP_PROXY" "ALL_PROXY" "NO_PROXY"
];
}