download: Honor the 'http_proxy' and 'https_proxy' env. vars.
authorLudovic Courtès <ludo@gnu.org>
Thu, 30 Apr 2015 21:54:06 +0000 (23:54 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 30 Apr 2015 22:06:18 +0000 (00:06 +0200)
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'.

guix/download.scm

index 3e4024f..6b03494 100644 (file)
@@ -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