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'.
This commit is contained in:
Ludovic Courtès 2015-04-30 23:54:06 +02:00
parent c04681554d
commit 0d8831370f
1 changed files with 3 additions and 0 deletions

View 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