summaryrefslogtreecommitdiff
path: root/guix/utils.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/utils.scm')
-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.