help-guix
[Top][All Lists]
Advanced

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

Re: skeleton files in sub-directories


From: Reza Alizadeh Majd
Subject: Re: skeleton files in sub-directories
Date: Mon, 27 May 2019 11:13:34 +0430
User-agent: Cyrus-JMAP/3.1.6-553-gc304556-fmstable-20190524v1

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" <address@hidden> 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’.
>



reply via email to

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