From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Blog: Guix packaging tutorial Date: Sun, 30 Sep 2018 21:44:09 +0200 Message-ID: <87efdau5x2.fsf@gnu.org> References: <87in397jsd.fsf@ambrevar.xyz> <20180913191151.GA1865@jurong> <87woro5ocf.fsf@ambrevar.xyz> <20180914113302.elqrk3tvdkln2cde@thebird.nl> <87o9cmj0fc.fsf@ambrevar.xyz> <87mus6iypf.fsf@ambrevar.xyz> <87zhw02ea9.fsf@mdc-berlin.de> <87o9cex112.fsf@ambrevar.xyz> 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]:48678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6hdu-0006d9-Ds for guix-devel@gnu.org; Sun, 30 Sep 2018 15:44:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6hdt-0000K7-JV for guix-devel@gnu.org; Sun, 30 Sep 2018 15:44:38 -0400 In-Reply-To: <87o9cex112.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Sun, 30 Sep 2018 21:01:29 +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" To: Pierre Neidhardt Cc: guix-devel , Ricardo Wurmus , guix-blog@gnu.org Hello, Pierre Neidhardt skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> I=E2=80=99m not sure what you mean by =E2=80=9Cgenerated in scope=E2=80= =9D. >> >> The =E2=80=98%=E2=80=99 convention is just a convention (and Andy and I = realized a while >> back we interpreted the convention differently :-)) so we shouldn=E2=80= =99t draw >> too much from that. >> >> Regarding =E2=80=98%build-inputs=E2=80=99 and =E2=80=98%outputs=E2=80=99= , I think it=E2=80=99s enough to say >> that these are global variables. Whether they are in scope depends on >> whether a local variable shadows them. >> >> Does that make sense? > > I borrowed the expression "generated in scope" from Pjotr's > https://gitlab.com/pjotrp/guix-notes/blob/master/HACKING.org. > > Are they really "global" variables? My (quick) understanding from > derivations.scm is that the %-prefixed variables are defined at > derivation-time. I think it's important to make this explicit. What do = you > think? =E2=80=98%build-inputs=E2=80=99 etc. are global variables of package deriva= tion build scripts; see =E2=80=98build-expression->derivation=E2=80=99 in (guix deriva= tions). To view the code of one of these scripts, open the file returned by: $ guix gc --references $(guix build -d coreutils) | grep builder /gnu/store/v02xky6f5rvjywd7ficzi5pyibbmk6cq-coreutils-8.29-guile-builder > ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> When would you like it to be on line? > > Well, as soon as possible :) Monday 1st, maybe? Alright, let=E2=80=99s see how far we go; I=E2=80=99ll be AFK most of the d= ay tomorrow though, so it might have to be on Tuesday. Thanks, Ludo=E2=80=99.