From 048be62484537633e2523dd4d200619649ff860d Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 16 Jul 2014 01:11:24 -0400 Subject: [PATCH] Pass *_proxy vars to bootstrap fetchurl --- corepkgs/fetchurl.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/corepkgs/fetchurl.nix b/corepkgs/fetchurl.nix index 39b9dd50..4faedb14 100644 --- a/corepkgs/fetchurl.nix +++ b/corepkgs/fetchurl.nix @@ -34,4 +34,12 @@ derivation { # Don't build in a chroot because Nix's dependencies may not be there. __noChroot = true; + + impureEnvVars = [ + # 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" + ]; }