mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
3ce1079753
The [Nix installer](84e0c464f1/scripts/install-systemd-multi-user.sh (L38)
) and the [documentation](84e0c464f1/doc/manual/src/installation/env-variables.md (L54-L56)
) state that they support uppercase proxy environment variables. [lib/fetchers.nix](165090ed66/lib/fetchers.nix (L10)
) only supports lowercase proxy environment variables. Fix: [nix#10491](https://github.com/NixOS/nix/issues/10491)
15 lines
483 B
Nix
15 lines
483 B
Nix
# snippets that can be shared by multiple fetchers (pkgs/build-support)
|
|
{ lib }:
|
|
{
|
|
|
|
proxyImpureEnvVars = [
|
|
# 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"
|
|
"HTTP_PROXY" "HTTPS_PROXY" "FTP_PROXY" "ALL_PROXY" "NO_PROXY"
|
|
];
|
|
|
|
}
|