From 96da5d629672b27d4628c1f4dc8a273d4ade7852 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 12 Sep 2017 22:20:08 +0200 Subject: system: Add gexp compiler for . * gnu/system.scm (operating-system-compiler): New procedure. --- gnu/system.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gnu/system.scm') diff --git a/gnu/system.scm b/gnu/system.scm index bb7e8531ee..c4404f5932 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -967,4 +967,14 @@ (define* (operating-system-boot-parameters-file os #:optional (system.drv #f)) (mount-point #$(boot-parameters-store-mount-point params)))) #:set-load-path? #f))) +(define-gexp-compiler (operating-system-compiler (os ) + 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 -- cgit v1.2.3