all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: James Smith via <help-guix@gnu.org>
To: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Is mkdir-p a directory  outside of /gnu/store.... possible?
Date: Thu, 17 Feb 2022 13:07:53 +0000	[thread overview]
Message-ID: <U-DiCO5JnXAZuGLOl_OPnXjLjHkkfGxZZrcQyUMR9w4Mv2E-EF3AA2uTPD3P4ft-0QMYPoZOcDgT2AvxyjeUllkPmLBMzrETdttZThCiyrI=@protonmail.com> (raw)

Hi,
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?
Thanks
Jim

             reply	other threads:[~2022-02-17 13:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-17 13:07 James Smith via [this message]
2022-02-17 15:12 ` Is mkdir-p a directory outside of /gnu/store.... possible? Ricardo Wurmus
2022-02-18  1:17 ` Thiago Jung Bauermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='U-DiCO5JnXAZuGLOl_OPnXjLjHkkfGxZZrcQyUMR9w4Mv2E-EF3AA2uTPD3P4ft-0QMYPoZOcDgT2AvxyjeUllkPmLBMzrETdttZThCiyrI=@protonmail.com' \
    --to=help-guix@gnu.org \
    --cc=jsmith8365@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.