mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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.
This commit is contained in:
parent
e67ac6e668
commit
1a7d8e2048
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ (define* (set-paths #:key inputs #:allow-other-keys)
|
|||
(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))
|
||||
|
|
Loading…
Reference in a new issue