aboutsummaryrefslogtreecommitdiff
path: root/guix/derivations.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-06-07 01:51:24 +0200
committerLudovic Courtès <ludo@gnu.org>2012-06-07 01:51:24 +0200
commit087602b687e28483923643b89490c2fd3b4d908b (patch)
tree7b813648109956ab170daf23ecca21c8d2f6e835 /guix/derivations.scm
parentfd96bc05c2153055075bfe483be442d630d562f9 (diff)
downloadgnu-guix-087602b687e28483923643b89490c2fd3b4d908b.tar
gnu-guix-087602b687e28483923643b89490c2fd3b4d908b.tar.gz
Fix the order of environment variables in `derivation'.
* guix/derivations.scm (derivation)[env-vars-with-empty-outputs]: Prepend new environment variables (as expected by Nix), and add them to E.
Diffstat (limited to 'guix/derivations.scm')
-rw-r--r--guix/derivations.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/derivations.scm b/guix/derivations.scm
index b13664ce05..151bff7215 100644
--- a/guix/derivations.scm
+++ b/guix/derivations.scm
@@ -290,8 +290,8 @@ known in advance, such as a file download."
(fold-right (lambda (output-name env-vars)
(if (assoc output-name env-vars)
env-vars
- (alist-cons output-name "" env-vars)))
- '()
+ (append env-vars `((,output-name . "")))))
+ e
outputs)))
(let* ((outputs (map (lambda (name)