mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-14 22:04:27 +01:00
911aa1440f
This envvar is also added to lib.proxyImpureEnvVars since it's typically required for https proxies. This change also updates fetchgit and go module fetching to use this envvar. NIX_GIT_SSL_CAINFO is still supported for backwards compatibility in fetchgit.
17 lines
573 B
Nix
17 lines
573 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"
|
|
|
|
# https proxies typically need to inject custom root CAs too
|
|
"NIX_SSL_CERT_FILE"
|
|
];
|
|
|
|
}
|