2017-04-19 20:41:28 +01:00
|
|
|
# snippets that can be shared by multiple fetchers (pkgs/build-support)
|
2017-07-29 01:05:35 +01:00
|
|
|
{ lib }:
|
2016-09-17 20:50:01 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
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"
|
2024-04-26 08:03:18 +01:00
|
|
|
"HTTP_PROXY" "HTTPS_PROXY" "FTP_PROXY" "ALL_PROXY" "NO_PROXY"
|
2023-11-28 11:15:40 +00:00
|
|
|
|
|
|
|
# https proxies typically need to inject custom root CAs too
|
|
|
|
"NIX_SSL_CERT_FILE"
|
2016-09-17 20:50:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
}
|