GNU bug report logs -
#49288
[PATCH] gnu: services: Export provenance-entry and sexp->channel
Previous Next
Reported by: Andrew Tropin <andrew <at> trop.in>
Date: Wed, 30 Jun 2021 09:46:02 UTC
Severity: normal
Tags: patch
Done: Andrew Tropin <andrew <at> trop.in>
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 49288 in the body.
You can then email your comments to 49288 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#49288
; Package
guix-patches
.
(Wed, 30 Jun 2021 09:46: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, 30 Jun 2021 09:46:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
These functions are need for Guix Home.
---
For now functions are copy pasted, but it seems better to reuse
existing functions.
https://git.sr.ht/~abcdw/rde/tree/057888b2604b05d555fd1b67f3d356644f9a134d/gnu/home-services.scm#L418
gnu/services.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/services.scm b/gnu/services.scm
index 8d413e198e..53b358c63b 100644
--- a/gnu/services.scm
+++ b/gnu/services.scm
@@ -91,6 +91,9 @@
ambiguous-target-service-error-service
ambiguous-target-service-error-target-type
+ provenance-entry
+ sexp->channel
+
system-service-type
provenance-service-type
sexp->system-provenance
--
2.32.0
<#secure method=pgpmime mode=sign>
Information forwarded
to
guix-patches <at> gnu.org
:
bug#49288
; Package
guix-patches
.
(Thu, 01 Jul 2021 13:38:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 49288 <at> debbugs.gnu.org (full text, mbox):
Hi!
Andrew Tropin <andrew <at> trop.in> skribis:
> These functions are need for Guix Home.
> ---
> For now functions are copy pasted, but it seems better to reuse
> existing functions.
> https://git.sr.ht/~abcdw/rde/tree/057888b2604b05d555fd1b67f3d356644f9a134d/gnu/home-services.scm#L418
>
> gnu/services.scm | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/gnu/services.scm b/gnu/services.scm
> index 8d413e198e..53b358c63b 100644
> --- a/gnu/services.scm
> +++ b/gnu/services.scm
> @@ -91,6 +91,9 @@
> ambiguous-target-service-error-service
> ambiguous-target-service-error-target-type
>
> + provenance-entry
> + sexp->channel
This ‘sexp->channel’ exists “for historical reasons”. Could you use
(@ (guix channels) sexp->channel) instead, together with
‘channel-instance->sexp’?
Actually, could you define it like so:
--8<---------------cut here---------------start------------->8---
(define home-provenance-service-type
(service-type
(inherit provenance-service-type)
(extensions
(list (service-extension
home-service-type
(service-extension-compute
(first (service-extensions provenance-service-type))))))
(default-value #f)))
--8<---------------cut here---------------end--------------->8---
More generally, perhaps you could have a procedure that takes a service
type and “rewires” it so that it extends ‘home-service-type’ instead of
‘etc-service-type’, say. Does that make sense?
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#49288
; Package
guix-patches
.
(Thu, 01 Jul 2021 14:37:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 49288 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi!
>
> Andrew Tropin <andrew <at> trop.in> skribis:
>
>> These functions are need for Guix Home.
>> ---
>> For now functions are copy pasted, but it seems better to reuse
>> existing functions.
>> https://git.sr.ht/~abcdw/rde/tree/057888b2604b05d555fd1b67f3d356644f9a134d/gnu/home-services.scm#L418
>>
>> gnu/services.scm | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/gnu/services.scm b/gnu/services.scm
>> index 8d413e198e..53b358c63b 100644
>> --- a/gnu/services.scm
>> +++ b/gnu/services.scm
>> @@ -91,6 +91,9 @@
>> ambiguous-target-service-error-service
>> ambiguous-target-service-error-target-type
>>
>> + provenance-entry
>> + sexp->channel
>
> This ‘sexp->channel’ exists “for historical reasons”. Could you use
> (@ (guix channels) sexp->channel) instead, together with
> ‘channel-instance->sexp’?
Sure!)
> Actually, could you define it like so:
>
> --8<---------------cut here---------------start------------->8---
> (define home-provenance-service-type
> (service-type
> (inherit provenance-service-type)
> (extensions
> (list (service-extension
> home-service-type
> (service-extension-compute
> (first (service-extensions provenance-service-type))))))
> (default-value #f)))
> --8<---------------cut here---------------end--------------->8---
Looks good to me.
> More generally, perhaps you could have a procedure that takes a service
> type and “rewires” it so that it extends ‘home-service-type’ instead of
> ‘etc-service-type’, say. Does that make sense?
Thank you for the idea, it can be useful, I'll consider it.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Andrew Tropin <andrew <at> trop.in>
:
You have taken responsibility.
(Thu, 01 Jul 2021 14:37:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Andrew Tropin <andrew <at> trop.in>
:
bug acknowledged by developer.
(Thu, 01 Jul 2021 14:37:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 30 Jul 2021 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 263 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.