guix-devel
[Top][All Lists]
Advanced

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

Re: Using symlinks in 'local-file'


From: Alex Kost
Subject: Re: Using symlinks in 'local-file'
Date: Sat, 20 Jun 2015 19:35:14 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ludovic Courtès (2015-06-19 11:26 +0300) wrote:

> Alex Kost <address@hidden> skribis:
[...]
>> I agree, getting an error is better than a broken link, so I'm for
>> making (#:recursive? #f) a default.  And resolving symlinks would
>> probably be even better.
>
> Done in commits 020f3e4 and 7833db1.

I see, thank you!

>>>> (define (call-derivation drv)
>>>>   (apply system*
>>>>          (cons (derivation-builder drv)
>>>>                (derivation-builder-arguments drv))))
>>>
>>> This is quite original.  ;-)
>>
>> I suppose that's a polite version of "That's not how it should be done".
>
> Well, yes and no; I find it clever actually.
>
>> I just don't know what the proper way to "call" derivation is :-)
>
> With ‘build-derivations’, which lets guix-daemon built it on your behalf
> in a container.
>
> Roughly, what the daemon does is:
>
>    (eval-in-container
>      #~(apply system*
>               (cons (derivation-builder drv)
>                     (derivation-builder-arguments drv))))
>
> in terms of David’s forthcoming ‘eval-in-container’.  ;-)

Thanks for the explanation.

-- 
Alex



reply via email to

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