From 087602b687e28483923643b89490c2fd3b4d908b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 7 Jun 2012 01:51:24 +0200 Subject: [PATCH] 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. --- guix/derivations.scm | 4 ++-- 1 file 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 @@ (define (env-vars-with-empty-outputs) (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)