summaryrefslogtreecommitdiff
path: root/guix/download.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-04-30 23:54:06 +0200
committerLudovic Courtès <ludo@gnu.org>2015-05-01 00:06:18 +0200
commit0d8831370f5cd1bb8bf24e5f511c915592cc482c (patch)
tree52a9188868793cba9d14907301e331973c6710b7 /guix/download.scm
parentc04681554da812f4ce1bed87c601cd62c663d151 (diff)
download: Honor the 'http_proxy' and 'https_proxy' env. vars.
Fixes <http://bugs.gnu.org/20402>. Reported by Joshua Randall <jcrandall@alum.mit.edu>. * guix/download.scm (url-fetch): Pass #:leaked-env-vars to 'gexp->derivation'.
Diffstat (limited to 'guix/download.scm')
-rw-r--r--guix/download.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/download.scm b/guix/download.scm
index 3e4024fe1f..6b0349402a 100644
--- a/guix/download.scm
+++ b/guix/download.scm
@@ -271,6 +271,9 @@ in the store."
(guix build utils)
(guix ftp-client))
+ ;; Honor the user's proxy settings.
+ #:leaked-env-vars '("http_proxy" "https_proxy")
+
;; In general, offloading downloads is not a good idea.
;;#:local-build? #t
;; FIXME: The above would also disable use of