diff options
Diffstat (limited to 'lib/fetchers.nix')
-rw-r--r-- | lib/fetchers.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/fetchers.nix b/lib/fetchers.nix new file mode 100644 index 00000000000..1107353b51d --- /dev/null +++ b/lib/fetchers.nix @@ -0,0 +1,13 @@ +# 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" + ]; + +} |