From ce5d658c5c24ccd394818ba892d43ea4c424ec24 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 11 Jul 2012 17:26:43 +0200 Subject: Add `nixpkgs-derivation*'; use it in the distro. * guix/utils.scm (nixpkgs-derivation*): New macro. * distro/base.scm: Use it instead of `nixpkgs-derivation'. --- guix/utils.scm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'guix/utils.scm') 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. -- cgit v1.2.3