GNU bug report logs - #52502
[PATCH] home: Add gexp-compiler for home-environments.

Previous Next

Package: guix-patches;

Reported by: Andrew Tropin <andrew <at> trop.in>

Date: Wed, 15 Dec 2021 07:26:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52502 in the body.
You can then email your comments to 52502 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#52502; Package guix-patches. (Wed, 15 Dec 2021 07:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrew Tropin <andrew <at> trop.in>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 15 Dec 2021 07:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrew Tropin <andrew <at> trop.in>
To: guix-patches <at> gnu.org
Subject: [PATCH] home: Add gexp-compiler for home-environments.
Date: Wed, 15 Dec 2021 10:25:22 +0300
[Message part 1 (text/plain, inline)]
* 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

[signature.asc (application/pgp-signature, inline)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 19 Dec 2021 22:22:02 GMT) Full text and rfc822 format available.

Notification sent to Andrew Tropin <andrew <at> trop.in>:
bug acknowledged by developer. (Sun, 19 Dec 2021 22:22:02 GMT) Full text and rfc822 format available.

Message #10 received at 52502-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Andrew Tropin <andrew <at> trop.in>
Cc: 52502-done <at> debbugs.gnu.org
Subject: Re: bug#52502: [PATCH] home: Add gexp-compiler for home-environments.
Date: Sun, 19 Dec 2021 23:20:59 +0100
Hi,

Andrew Tropin <andrew <at> trop.in> skribis:

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

Applied, thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 17 Jan 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.