From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Using symlinks in 'local-file' Date: Sat, 20 Jun 2015 19:35:14 +0300 Message-ID: <87si9m5oe5.fsf@gmail.com> References: <87si9uglli.fsf@gmail.com> <878ubk66ss.fsf@gnu.org> <87616ny1ea.fsf@gmail.com> <87d20s3xyq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6Ljl-00070k-83 for guix-devel@gnu.org; Sat, 20 Jun 2015 12:35:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6Ljg-0002Ny-84 for guix-devel@gnu.org; Sat, 20 Jun 2015 12:35:21 -0400 In-Reply-To: <87d20s3xyq.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 19 Jun 2015 10:26:53 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s (2015-06-19 11:26 +0300) wrote: > Alex Kost 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 =E2=80=98build-derivations=E2=80=99, 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=E2=80=99s forthcoming =E2=80=98eval-in-container=E2=80= =99. ;-) Thanks for the explanation. --=20 Alex