[PATCH] home: services: Change computed-file to scheme-file.

  • Done
  • quality assurance status badge
Details
2 participants
  • Andrew Tropin
  • Ludovic Courtès
Owner
unassigned
Submitted by
Andrew Tropin
Severity
normal
A
A
Andrew Tropin wrote on 17 Nov 2021 09:22
(name . Oleg Pykhalov)(address . go.wigust@gmail.com)
877dd7p3vy.fsf@trop.in
* gnu/home/services.scm (compute-on-first-login-script): Use
'scheme-file' instead of 'computed-file'.
---
It seems there was a problem with 4dcec60fa6a93dbc93bef2cdb91e3633c705579e:

Toggle snippet (4 lines)
guix time-machine --commit=4dcec60fa6a93dbc93bef2cdb91e3633c705579e -- home build -e "((@ (gnu home) home-environment))"
guix home: error: reference to invalid output 'out' of derivation '/gnu/store/a6cwlz5yibi7w3pfm60j26inf434ard2-on-first-login.drv'

This patch should fix it.

gnu/home/services.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/home/services.scm b/gnu/home/services.scm
index 992e522fa2..0deaadaf3e 100644
--- a/gnu/home/services.scm
+++ b/gnu/home/services.scm
@@ -275,7 +275,7 @@ (define home-files-service-type
will be put in @file{~/.guix-home/files}.")))
(define (compute-on-first-login-script _ gexps)
- (computed-file
+ (scheme-file
"on-first-login"
#~(let* ((xdg-runtime-dir (or (getenv "XDG_RUNTIME_DIR")
(format #f "/run/user/~a" (getuid))))
--
2.33.1
-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmGUwREPHGFuZHJld0B0
cm9wLmluAAoJECII0glYwd6wpvUQAIzpI53ajf18gYttvTWpr4WxoWTt7XB70tfi
RMI10ZMCzsMjYO78vTcFlLZXIs05MnZHNEEkpiwfpH1vSkHBoJUzRpRnfg9H8Wqw
ee+HsZchv2y8C36+f30+4OyXf9CMk5ZUGT9JEnPHCPKHtZc7oZBy1lpnjtyFYG99
uBAMEc5p7EG40KwsiBCMW8SQzQD9qlEmjhW1+wrxn2lYloN5aZ1CSzclTKytFLwp
SEyYzuJkC4vgCuR6Po2axrwiX1MP7sCcOtcql1fRVWSxIBZVCeLmZ4B0OtxPnjkW
44R3GMTJfSlHlFeI6iLJ6458cbUSeMekFMe0kG1y+EvEc26UgP0FllQIlcLFThvk
Ltt0YfGIutmlVEJ3DpFiDbPY6LabIpAlsjQA5P6BV18oiqkzCckn8QBF2oOAvk+Z
efUbrb9gS6qGuVFd6wdi0YhTjeRrXpTHJiYYBHfyzKkKOeP06ElnjyqIb4ZqHANP
eDj3TemrlbBCMOWkY9WZKoVHF4z8srP996vRToj0sf3KDGbk8XXav+AYtrKud3b1
3yXTJSK2jRySj8kPWx3NEZACzBp8cK+KFOGnedPsRO2dp3QOIa5CICQlAuZb7AZh
9gtWrFbK0zzNj9/DVpe3LwKBB9QaQ+HsK0NkbTI3CK9y+D27YzqX0xb+GyESi95o
ve9fZtaN
=Df/5
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 18 Nov 2021 09:39
(name . Andrew Tropin)(address . andrew@trop.in)
87tug9rh6b.fsf@gnu.org
Hi,

Andrew Tropin <andrew@trop.in> skribis:

Toggle quote (10 lines)
> --- a/gnu/home/services.scm
> +++ b/gnu/home/services.scm
> @@ -275,7 +275,7 @@ (define home-files-service-type
> will be put in @file{~/.guix-home/files}.")))
>
> (define (compute-on-first-login-script _ gexps)
> - (computed-file
> + (scheme-file
> "on-first-login"

This was fixed in e5d8302b2ce596a0518ea5bd79b338f68a3246eb (with
‘program-file’.) Apologies for the mistake.

Thanks,
Ludo’.
Closed
A
A
Andrew Tropin wrote on 18 Nov 2021 10:02
(name . Ludovic Courtès)(address . ludo@gnu.org)
87v90pomz1.fsf@trop.in
On 2021-11-18 09:39, Ludovic Courtès wrote:

Toggle quote (17 lines)
> Hi,
>
> Andrew Tropin <andrew@trop.in> skribis:
>
>> --- a/gnu/home/services.scm
>> +++ b/gnu/home/services.scm
>> @@ -275,7 +275,7 @@ (define home-files-service-type
>> will be put in @file{~/.guix-home/files}.")))
>>
>> (define (compute-on-first-login-script _ gexps)
>> - (computed-file
>> + (scheme-file
>> "on-first-login"
>
> This was fixed in e5d8302b2ce596a0518ea5bd79b338f68a3246eb (with
> ‘program-file’.) Apologies for the mistake.

Thank you very much for the fix! :)

Toggle quote (4 lines)
>
> Thanks,
> Ludo’.

--
Best regards,
Andrew Tropin
-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmGWFrIPHGFuZHJld0B0
cm9wLmluAAoJECII0glYwd6whYMP/2Jkr7QBt+oek6N3ZesN4q8/BmGemJ1RHBCK
U0+w3sM3nVa2HsRP44Mv/MOkBmg+cdSoUDE4cfyfVSiYMJEjJmftOhXen3+VcenG
czSyUJ9rgqR9Mv1IOWsSDgaB8k54bYIT1AfQzI36GU6JERdGqYfRImYX3xQz9MrC
qFI95OV5YeDlo1UuSQGCdysj0MNYpDeI5roBz4lDtz3/aZRXepKzO4YcVubAYp/j
9jpvSbSWm1MxNOyxJMrw5IrU2G6/rMG7D5369Y+jvU1DguadtVJHP1al8Ip2rqFH
gZChI/Zq0Mav1FAXjBM7yVmusSgXFCyPQb3pFV34oJMq9fBsZNv13IYkmZOPJsvB
wpt9puX8xYh/jSax17PN8Z7DOGYbv5i3sGWbZ55bu9Vhm3VkS32sIS4Y4pIPyuN0
fT1+pr9XNjfAedJiVY7IQq5J5TsnVFFYm0xpt8fZgYHfkiK2459SsXHWeT3TaLpk
McgP9XAnQRyBhKCl5DvWKgZ7TlPj4RSYz/4on1SZiSJh170CYPQES1oyNl3yvrOa
ajaMZSHvVVPxk+uCywdXiSkVhPTxOJqg9Wm7tTieHGPObJqKsUJJwU+2CNJ/PFu8
aXEGP7b23LsgL1fXAwLWnB+79DbIVoiI9vHe1k5j7u52wr/9evq+mQsm+tmPzMxY
p6yuPSVz
=tS9T
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 51915@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 51915
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch