summary refs log tree commit diff
diff options
context:
space:
mode:
-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)