emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#52502: closed ([PATCH] home: Add gexp-compiler for home-environments


From: GNU bug Tracking System
Subject: bug#52502: closed ([PATCH] home: Add gexp-compiler for home-environments.)
Date: Sun, 19 Dec 2021 22:22:02 +0000

Your message dated Sun, 19 Dec 2021 23:20:59 +0100
with message-id <87k0g0me2c.fsf@gnu.org>
and subject line Re: bug#52502: [PATCH] home: Add gexp-compiler for 
home-environments.
has caused the debbugs.gnu.org bug report #52502,
regarding [PATCH] home: Add gexp-compiler for home-environments.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
52502: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52502
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] home: Add gexp-compiler for home-environments. Date: Wed, 15 Dec 2021 10:25:22 +0300
* 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: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#52502: [PATCH] home: Add gexp-compiler for home-environments. Date: Sun, 19 Dec 2021 23:20:59 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hi,

Andrew Tropin <andrew@trop.in> skribis:

> * gnu/home.scm (home-environment-compiler): New variable.

Applied, thanks!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]