aboutsummaryrefslogtreecommitdiff
path: root/guix/build-system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-06-28 22:38:09 +0200
committerLudovic Courtès <ludo@gnu.org>2012-06-28 22:38:09 +0200
commit900f7267341da3281e937cb0b128b21975574867 (patch)
tree4c87f62a5a0c7a49d05b9776ec7668a4800450f9 /guix/build-system
parente3ce5d709f3ba6a3f3a94a24c20a9cd87e6bd07d (diff)
downloadgnu-guix-900f7267341da3281e937cb0b128b21975574867.tar
gnu-guix-900f7267341da3281e937cb0b128b21975574867.tar.gz
Introduce `compile-time-value' and use it.
* guix/utils.scm (compile-time-value): New macro. (%nixpkgs-directory): Use it. * guix/build-system/gnu.scm (%standard-inputs): Likewise.
Diffstat (limited to 'guix/build-system')
-rw-r--r--guix/build-system/gnu.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm
index 15996d4850..c0eef55ba9 100644
--- a/guix/build-system/gnu.scm
+++ b/guix/build-system/gnu.scm
@@ -33,11 +33,12 @@
;; Code:
(define %standard-inputs
- (map (lambda (name)
- (list name (nixpkgs-derivation name)))
- '("gnutar" "gzip" "bzip2" "xz" "diffutils" "patch"
- "coreutils" "gnused" "gnugrep" "bash"
- "gcc" "binutils" "gnumake" "glibc")))
+ (compile-time-value
+ (map (lambda (name)
+ (list name (nixpkgs-derivation name)))
+ '("gnutar" "gzip" "bzip2" "xz" "diffutils" "patch"
+ "coreutils" "gnused" "gnugrep" "bash"
+ "gcc" "binutils" "gnumake" "glibc"))))
(define* (gnu-build store name source inputs
#:key (outputs '("out")) (configure-flags ''())