From: "Ludovic Courtès" <ludo@gnu.org>
To: Reza Alizadeh Majd <r.majd@pantherx.org>
Cc: help-guix@gnu.org
Subject: Re: skeleton files in sub-directories
Date: Sun, 26 May 2019 21:46:10 +0200 [thread overview]
Message-ID: <87pno5m22l.fsf@gnu.org> (raw)
In-Reply-To: <c7f3514d-2e23-4066-8050-180d53aecaa6@www.fastmail.com> (Reza Alizadeh Majd's message of "Sun, 26 May 2019 14:38:03 +0430")
Hi,
"Reza Alizadeh Majd" <r.majd@pantherx.org> skribis:
> the problem is that some of these skeletons are located in sub-directories, for
> example `~/.local/share/foo/bar.cfg`. and when I run `guix system reconfigure`
> I receive errors about missing parent directory (`~/.local/share/foo` in this example).
>
> is there any way to create parent directories before copying the skeleton files?
I think you can do something like:
(define dot-config
(compute-file "dot-config-skeleton"
#~(begin
(mkdir #$output)
(mkdir (string-append #$output "/guix"))
…)))
and then add it in the list of skeletons like so:
`(…
(".config" ,dot-config))
Does that make sense?
Ludo’.
next prev parent reply other threads:[~2019-05-26 19:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-26 10:08 skeleton files in sub-directories Reza Alizadeh Majd
2019-05-26 19:46 ` Ludovic Courtès [this message]
2019-05-26 23:33 ` ison
2019-05-27 6:43 ` Reza Alizadeh Majd
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pno5m22l.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=help-guix@gnu.org \
--cc=r.majd@pantherx.org \
/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.
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).