aboutsummaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-07-11 17:26:43 +0200
committerLudovic Courtès <ludo@gnu.org>2012-07-11 17:26:43 +0200
commitce5d658c5c24ccd394818ba892d43ea4c424ec24 (patch)
treeaee925a591f5fd0897a34691bddc95d8431e4b4f /guix
parentfd33c82c43faafb3a3489e52dd8a6b651d952ac9 (diff)
downloadgnu-guix-ce5d658c5c24ccd394818ba892d43ea4c424ec24.tar
gnu-guix-ce5d658c5c24ccd394818ba892d43ea4c424ec24.tar.gz
Add `nixpkgs-derivation*'; use it in the distro.
* guix/utils.scm (nixpkgs-derivation*): New macro. * distro/base.scm: Use it instead of `nixpkgs-derivation'.
Diffstat (limited to 'guix')
-rw-r--r--guix/utils.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/utils.scm b/guix/utils.scm
index 3d92bac9cc..66563c727e 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -43,6 +43,7 @@
%nixpkgs-directory
nixpkgs-derivation
+ nixpkgs-derivation*
define-record-type*
compile-time-value
@@ -457,6 +458,10 @@ starting from the right of S."
(not (eof-object? l))
l)))
+(define-syntax-rule (nixpkgs-derivation* attribute)
+ "Evaluate the given Nixpkgs derivation at compile-time."
+ (compile-time-value (nixpkgs-derivation attribute)))
+
;;;
;;; Miscellaneous.