summary refs log tree commit diff
path: root/guix/bzr-download.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2019-09-05 17:05:08 +0200
committerLudovic Courtès <ludo@gnu.org>2019-09-05 18:33:30 +0200
commit67c2db17bc29e483dbaffbee246c910a617744c6 (patch)
treec01aeb0a5fa9d22338cbdfe6aa501299371d4990 /guix/bzr-download.scm
parentd5508458406fcd8c95289afb3097ab951173827f (diff)
downloadguix-67c2db17bc29e483dbaffbee246c910a617744c6.tar.gz
download: Pass 'http_proxy' et al. to git, hg, etc.
This allows 'git-fetch' etc. origins to honor the proxy and locale of
the daemon.

* guix/bzr-download.scm (bzr-fetch): Pass #:leaked-env-vars to
'gexp->derivation'.
* guix/cvs-download.scm (cvs-fetch): Likewise.
* guix/git-download.scm (git-fetch): Likewise.
* guix/hg-download.scm (hg-fetch): Likewise.
* guix/svn-download.scm (svn-multi-fetch): Likewise.
Diffstat (limited to 'guix/bzr-download.scm')
-rw-r--r--guix/bzr-download.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/bzr-download.scm b/guix/bzr-download.scm
index d30833c5d7..010e0decff 100644
--- a/guix/bzr-download.scm
+++ b/guix/bzr-download.scm
@@ -75,6 +75,9 @@ HASH-ALGO (a symbol).  Use NAME as the file name, or a generic name if #f."
                       #:env-vars
                       `(("bzr url" . ,(bzr-reference-url ref))
                         ("bzr reference" . ,(bzr-reference-revision ref)))
+                      #:leaked-env-vars '("http_proxy" "https_proxy"
+                                          "LC_ALL" "LC_MESSAGES" "LANG"
+                                          "COLUMNS")
                       #:system system
                       #:local-build? #t  ;don't offload repo branching
                       #:hash-algo hash-algo