[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/05: system: Add gexp compiler for <operating-system>.
From: |
Ludovic Courtès |
Subject: |
02/05: system: Add gexp compiler for <operating-system>. |
Date: |
Tue, 12 Sep 2017 17:56:40 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 96da5d629672b27d4628c1f4dc8a273d4ade7852
Author: Ludovic Courtès <address@hidden>
Date: Tue Sep 12 22:20:08 2017 +0200
system: Add gexp compiler for <operating-system>.
* gnu/system.scm (operating-system-compiler): New procedure.
---
gnu/system.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/system.scm b/gnu/system.scm
index bb7e853..c4404f5 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -967,4 +967,14 @@ being stored into the \"parameters\" file)."
(mount-point #$(boot-parameters-store-mount-point
params))))
#:set-load-path? #f)))
+(define-gexp-compiler (operating-system-compiler (os <operating-system>)
+ system target)
+ ((store-lift
+ (lambda (store)
+ ;; XXX: This is not super elegant but we can't pass SYSTEM and TARGET to
+ ;; 'operating-system-derivation'.
+ (run-with-store store (operating-system-derivation os)
+ #:system system
+ #:target target)))))
+
;;; system.scm ends here