all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Reza Alizadeh Majd" <r.majd@pantherx.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: help-guix@gnu.org
Subject: Re: skeleton files in sub-directories
Date: Mon, 27 May 2019 11:13:34 +0430	[thread overview]
Message-ID: <2a9d46c2-631f-48bd-ab50-47976a68fe7f@www.fastmail.com> (raw)
In-Reply-To: <87pno5m22l.fsf@gnu.org>

Hi, 

using `computed-file` to create the parent directories for config files, fixed the issue. 

Thanks, 
Reza


On Mon, May 27, 2019, at 12:16 AM, Ludovic Courtès wrote:
> 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’.
>

      parent reply	other threads:[~2019-05-27  6:43 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
2019-05-26 23:33   ` ison
2019-05-27  6:43   ` Reza Alizadeh Majd [this message]

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=2a9d46c2-631f-48bd-ab50-47976a68fe7f@www.fastmail.com \
    --to=r.majd@pantherx.org \
    --cc=help-guix@gnu.org \
    --cc=ludo@gnu.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.
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.