[Top][All Lists]

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

Is mkdir-p a directory outside of /gnu/store.... possible?

From: James Smith
Subject: Is mkdir-p a directory outside of /gnu/store.... possible?
Date: Thu, 17 Feb 2022 13:07:53 +0000

I am using the guix package manager on Debian.
I guix package --install-from-file-myapp.scm and during the install process I 
would like to

(mkdir-p "$HOME/.config/myapp") and then
(system* (cp "/gnu/store/.../myapp/config.txt" "$HOME/.config/myapp"))

I launch guix package -i... from my home directory /home/jbs

I have tried

(mkdir-p "/home/jbs/.config/myapp")
(system* "mkdir" "-p" "/home/jbs/.config/myapp")
(invoke "mkdir" "-p" "/home/jbs/.config/myapp")

but get permissions errors. I can't even make the directory in /tmp...

I see the discussions on $HOME, homeless-shelter and the hacks in 
.../scripts/environment.scm so I presume I cannot determine $HOME(?) but even 
hardcoding my home does not work.

Is it possible during the make/install process to make a directory outside of 
/gnu/store... and if yes how?

reply via email to

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