diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-07-11 17:26:43 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-07-11 17:26:43 +0200 |
commit | ce5d658c5c24ccd394818ba892d43ea4c424ec24 (patch) | |
tree | aee925a591f5fd0897a34691bddc95d8431e4b4f /guix | |
parent | fd33c82c43faafb3a3489e52dd8a6b651d952ac9 (diff) | |
download | gnu-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.scm | 5 |
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. |