* [bug#52502] [PATCH] home: Add gexp-compiler for home-environments.
@ 2021-12-15 7:25 Andrew Tropin
2021-12-19 22:20 ` bug#52502: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Tropin @ 2021-12-15 7:25 UTC (permalink / raw)
To: 52502
[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]
* gnu/home.scm (home-environment-compiler): New variable.
---
gnu/home.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/home.scm b/gnu/home.scm
index d8134693e5..a9f0a469a5 100644
--- a/gnu/home.scm
+++ b/gnu/home.scm
@@ -25,6 +25,8 @@ (define-module (gnu home)
#:use-module (gnu services)
#:use-module (guix records)
#:use-module (guix diagnostics)
+ #:use-module (guix gexp)
+ #:use-module (guix store)
#:export (home-environment
home-environment?
@@ -104,3 +106,11 @@ (define* (home-environment-with-provenance he config-file)
(inherit he)
(services (cons (service home-provenance-service-type config-file)
(home-environment-user-services he)))))
+
+(define-gexp-compiler (home-environment-compiler (he <home-environment>)
+ system target)
+ ((store-lift
+ (lambda (store)
+ (run-with-store store (home-environment-derivation he)
+ #:system system
+ #:target target)))))
--
2.34.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#52502: [PATCH] home: Add gexp-compiler for home-environments.
2021-12-15 7:25 [bug#52502] [PATCH] home: Add gexp-compiler for home-environments Andrew Tropin
@ 2021-12-19 22:20 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2021-12-19 22:20 UTC (permalink / raw)
To: Andrew Tropin; +Cc: 52502-done
Hi,
Andrew Tropin <andrew@trop.in> skribis:
> * gnu/home.scm (home-environment-compiler): New variable.
Applied, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-19 22:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15 7:25 [bug#52502] [PATCH] home: Add gexp-compiler for home-environments Andrew Tropin
2021-12-19 22:20 ` bug#52502: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).