* Need help about guix home "home-run-on-first-login-service-type"
@ 2024-08-05 13:51 =?gb18030?B?u6iyu7z7uqM=?=
2024-08-05 17:49 ` Tomas Volf
2024-08-06 8:35 ` Marek Paśnikowski
0 siblings, 2 replies; 4+ messages in thread
From: =?gb18030?B?u6iyu7z7uqM=?= @ 2024-08-05 13:51 UTC (permalink / raw)
To: =?gb18030?B?Z3VpeC1kZXZlbA==?=
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 4087 bytes --]
I want to use home-run-on-first-login-service-type to automatic install on-my-zshwhen first login to shell.
But I got an error when I try to guilx home container home-configuration.scm
------------------------------ home-configuration.scm -----------------------------------
;; This "home-environment" file can be passed to 'guix home reconfigure'
;; to reproduce the content of your profile. This is "symbolic": it only
;; specifies package names. To reproduce the exact same profile, you also
;; need to capture the channels being used, as returned by "guix describe".
;; See the "Replicating Guix" section in the manual.
(use-modules (gnu home)
(gnu packages)
(gnu services)
(guix gexp)
(gnu home services shells)
(gnu home services))
(define download-ohmyzsh-install
(with-imported-modules '((guix build utils))
#~(begin
(use-modules (guix build utils))
(invoke
"curl"
"-L"
"https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh"
"-O"
"install.sh")
(invoke "sh" "install.sh"))))
(home-environment
;; Below is the list of packages that will show up in your
;; Home profile, under ~/.guix-home/profile.
(packages (specifications->packages (list "guile"
"clojure"
"node"
"gopls"
"go"
"emacs-pgtk"
"curl"
"direnv")))
;; Below is the list of Home services. To search for available
;; services, run 'guix home search KEYWORD' in a terminal.
(services
(list
(service home-run-on-first-login-service-type download-ohmyzsh-install)
(service home-zsh-service-type (home-zsh-configuration)))))
--------------------------------------- end -----------------------------------------------
-------------------------------------- error output ---------------------------------------
substitute: updating substitutes from 'https://mirror.sjtu.edu.cn/guix/'... 100.0%
The following derivations will be built:
/gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv
/gnu/store/8483bafsq7izr33l9v3qcw51vkxgl260-provenance.drv
building /gnu/store/8483bafsq7izr33l9v3qcw51vkxgl260-provenance.drv...
building /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv...
\builder for `/gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv' failed with exit code 1
build of /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv failed
View build log at '/var/log/guix/drvs/3s/zcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv.gz'.
guix home: error: build of `/gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv' failed
------------------------------------------- end -------------------------------------------
I`m a novice of guix, any big guys can help me?
Thank you!
[-- Attachment #2: Type: text/html, Size: 4748 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need help about guix home "home-run-on-first-login-service-type"
2024-08-05 13:51 Need help about guix home "home-run-on-first-login-service-type" =?gb18030?B?u6iyu7z7uqM=?=
@ 2024-08-05 17:49 ` Tomas Volf
2024-08-06 8:35 ` Marek Paśnikowski
1 sibling, 0 replies; 4+ messages in thread
From: Tomas Volf @ 2024-08-05 17:49 UTC (permalink / raw)
To: 花不见海; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 4523 bytes --]
On 2024-08-05 21:51:17 +0800, 花不见海 wrote:
> I want to use home-run-on-first-login-service-type to automatic install on-my-zshwhen first login to shell.
>
>
> But I got an error when I try to guilx home container home-configuration.scm
>
>
> ------------------------------ home-configuration.scm -----------------------------------
>
>
> ;; This "home-environment" file can be passed to 'guix home reconfigure'
> ;; to reproduce the content of your profile. This is "symbolic": it only
> ;; specifies package names. To reproduce the exact same profile, you also
> ;; need to capture the channels being used, as returned by "guix describe".
> ;; See the "Replicating Guix" section in the manual.
>
>
> (use-modules (gnu home)
> (gnu packages)
> (gnu services)
> (guix gexp)
> (gnu home services shells)
> (gnu home services))
>
>
> (define download-ohmyzsh-install
> (with-imported-modules '((guix build utils))
> #~(begin
> (use-modules (guix build utils))
> (invoke
> "curl"
> "-L"
> "https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh"
> "-O"
> "install.sh")
> (invoke "sh" "install.sh"))))
>
>
> (home-environment
> ;; Below is the list of packages that will show up in your
> ;; Home profile, under ~/.guix-home/profile.
> (packages (specifications->packages (list "guile"
> "clojure"
> "node"
> "gopls"
> "go"
> "emacs-pgtk"
> "curl"
> "direnv")))
>
>
> ;; Below is the list of Home services. To search for available
> ;; services, run 'guix home search KEYWORD' in a terminal.
> (services
> (list
> (service home-run-on-first-login-service-type download-ohmyzsh-install)
> (service home-zsh-service-type (home-zsh-configuration)))))
This is really hard to read, could you please resend with correct whitespace
handling?
>
>
>
> --------------------------------------- end -----------------------------------------------
>
>
> -------------------------------------- error output ---------------------------------------
>
> substitute: updating substitutes from 'https://mirror.sjtu.edu.cn/guix/'... 100.0%
> The following derivations will be built:
> /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv
> /gnu/store/8483bafsq7izr33l9v3qcw51vkxgl260-provenance.drv
>
>
> building /gnu/store/8483bafsq7izr33l9v3qcw51vkxgl260-provenance.drv...
> building /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv...
> \builder for `/gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv' failed with exit code 1
> build of /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv failed
> View build log at '/var/log/guix/drvs/3s/zcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv.gz'.
> guix home: error: build of `/gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv' failed
>
> ------------------------------------------- end -------------------------------------------
>
>
> I`m a novice of guix, any big guys can help me?
>
>
> Thank you!
Have a nice day,
Tomas Volf
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need help about guix home "home-run-on-first-login-service-type"
2024-08-05 13:51 Need help about guix home "home-run-on-first-login-service-type" =?gb18030?B?u6iyu7z7uqM=?=
2024-08-05 17:49 ` Tomas Volf
@ 2024-08-06 8:35 ` Marek Paśnikowski
[not found] ` <87ikwevvsm.fsf@qq.com>
1 sibling, 1 reply; 4+ messages in thread
From: Marek Paśnikowski @ 2024-08-06 8:35 UTC (permalink / raw)
To: guix-devel
Seems like Gnus cleaned up the message for me, so I can see a bit more.
"花不见海" <2694273649@qq.com> writes:
> (define download-ohmyzsh-install
> (with-imported-modules '((guix build utils))
> #~(begin
> (use-modules (guix build utils))
> (invoke
> "curl"
> "-L"
> "https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh"
> "-O"
> "install.sh")
> (invoke "sh" "install.sh"))))
>
> (home-environment
> [packages ...]
> (services
> (list
> (service home-run-on-first-login-service-type download-ohmyzsh-install)
> (service home-zsh-service-type (home-zsh-configuration)))))
>
I tried to refute the service declaration by looking at the service
source code, but I was not able to find any issues this way.
> \builder for `/gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv' failed with exit code 1
> build of /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv failed
> View build log at '/var/log/guix/drvs/3s/zcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv.gz'.
This line here, "View build log at $path", is the most important one.
Everything else does not matter. Post the contents of that log using
zcat, which is a variant of cat that does decompression.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need help about guix home "home-run-on-first-login-service-type"
[not found] ` <87ikwevvsm.fsf@qq.com>
@ 2024-08-06 9:35 ` jidibinlin
0 siblings, 0 replies; 4+ messages in thread
From: jidibinlin @ 2024-08-06 9:35 UTC (permalink / raw)
To: Marek Paśnikowski; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]
Marek Paśnikowski <marek@marekpasnikowski.pl> writes:
> Seems like Gnus cleaned up the message for me, so I can see a bit more.
>
> “花不见海” <2694273649@qq.com> writes:
>
>> (define download-ohmyzsh-install
>> (with-imported-modules ’((guix build utils))
>> #~(begin
>> (use-modules (guix build utils))
>> (invoke
>> “curl”
>> “-L”
>> “<https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh>”
>> “-O”
>> “install.sh”)
>> (invoke “sh” “install.sh”))))
>>
>> (home-environment
>> [packages …]
>> (services
>> (list
>> (service home-run-on-first-login-service-type download-ohmyzsh-install)
>> (service home-zsh-service-type (home-zsh-configuration)))))
>>
>
> I tried to refute the service declaration by looking at the service
> source code, but I was not able to find any issues this way.
>
>> \builder for `/gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv’ failed with exit code 1
>> build of /gnu/store/3szcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv failed
>> View build log at ’/var/log/guix/drvs/3s/zcc1q867q7hrqigsns4xf8bvrc2l5h-home.drv.gz’.
>
> This line here, “View build log at $path”, is the most important one.
> Everything else does not matter. Post the contents of that log using
> zcat, which is a variant of cat that does decompression.
Oh! I thought the log file compressed is a directory. So I used tar -xvf $logfile
to see the log.
When I use zcat I got this
——————————- zcat $logfile ———————————-
Backtrace:
2 (primitive-load “/gnu/store/zhanp30hpki5l4ym1jw8d471x0z?”)
In ice-9/eval.scm:
619:8 1 (_ #f)
In unknown file:
0 (symlink “/gnu/store/8dp41h3wd0zqalffgr67xwzmpjx63h7b-?” ?)
ERROR: In procedure symlink:
In procedure symlink: File exists
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-06 9:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05 13:51 Need help about guix home "home-run-on-first-login-service-type" =?gb18030?B?u6iyu7z7uqM=?=
2024-08-05 17:49 ` Tomas Volf
2024-08-06 8:35 ` Marek Paśnikowski
[not found] ` <87ikwevvsm.fsf@qq.com>
2024-08-06 9:35 ` jidibinlin
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).