aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-07-06 00:50:07 +0200
committerLudovic Courtès <ludo@gnu.org>2012-07-06 00:50:07 +0200
commit1a7d8e2048768ba093b2b09aa265e7abcbce7a31 (patch)
tree5a47cd986bf89661d70e47a8e691885248a81144
parente67ac6e66811c6125d25febe76043fa47037591f (diff)
downloadguix-1a7d8e2048768ba093b2b09aa265e7abcbce7a31.tar.gz
guix-1a7d8e2048768ba093b2b09aa265e7abcbce7a31.zip
gnu-build-system: Dump the values of environment variables.
* guix/build/gnu-build-system.scm (set-paths): Dump the value of environment variables in the `environment-variables' files, similar to what Nixpkgs does.
-rw-r--r--guix/build/gnu-build-system.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm
index 566903ed73..9035280577 100644
--- a/guix/build/gnu-build-system.scm
+++ b/guix/build/gnu-build-system.scm
@@ -50,7 +50,10 @@
(let ((inputs (map cdr inputs)))
(set-path-environment-variable "PATH" '("bin") inputs)
(set-path-environment-variable "CPATH" '("include") inputs)
- (set-path-environment-variable "LIBRARY_PATH" '("lib" "lib64") inputs)))
+ (set-path-environment-variable "LIBRARY_PATH" '("lib" "lib64") inputs)
+
+ ;; Dump the environment variables as a shell script, for handy debugging.
+ (system "export > environment-variables")))
(define* (unpack #:key source #:allow-other-keys)
(and (zero? (system* "tar" "xvf" source))