From 3ce10797535119f1e84770a97395f8d0afe18950 Mon Sep 17 00:00:00 2001 From: ramboman Date: Fri, 26 Apr 2024 07:03:18 +0000 Subject: [PATCH] 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) --- lib/fetchers.nix | 1 + 1 file changed, 1 insertion(+) 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" ]; }