[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Blog: Guix packaging tutorial
From: |
Ludovic Courtès |
Subject: |
Re: Blog: Guix packaging tutorial |
Date: |
Sun, 30 Sep 2018 21:44:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Pierre Neidhardt <address@hidden> skribis:
> address@hidden (Ludovic Courtès) writes:
>> I’m not sure what you mean by “generated in scope”.
>>
>> The ‘%’ convention is just a convention (and Andy and I realized a while
>> back we interpreted the convention differently :-)) so we shouldn’t draw
>> too much from that.
>>
>> Regarding ‘%build-inputs’ and ‘%outputs’, I think it’s 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?
‘%build-inputs’ etc. are global variables of package derivation build
scripts; see ‘build-expression->derivation’ in (guix derivations).
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
> address@hidden (Ludovic Courtès) writes:
>> When would you like it to be on line?
>
> Well, as soon as possible :) Monday 1st, maybe?
Alright, let’s see how far we go; I’ll be AFK most of the day tomorrow
though, so it might have to be on Tuesday.
Thanks,
Ludo’.
- Re: Blog: Guix packaging tutorial, (continued)
- Re: Blog: Guix packaging tutorial, Andreas Enge, 2018/09/13
- Re: Blog: Guix packaging tutorial, Pierre Neidhardt, 2018/09/14
- Re: Blog: Guix packaging tutorial, Pjotr Prins, 2018/09/14
- Re: Blog: Guix packaging tutorial, Pierre Neidhardt, 2018/09/24
- Re: Blog: Guix packaging tutorial, Pierre Neidhardt, 2018/09/24
- Re: Blog: Guix packaging tutorial, Ludovic Courtès, 2018/09/27
- Re: Blog: Guix packaging tutorial, Pierre Neidhardt, 2018/09/27
- Re: Blog: Guix packaging tutorial, Ludovic Courtès, 2018/09/29
- Re: Blog: Guix packaging tutorial, Ricardo Wurmus, 2018/09/29
- Re: Blog: Guix packaging tutorial, Pierre Neidhardt, 2018/09/30
- Re: Blog: Guix packaging tutorial,
Ludovic Courtès <=
- Re: Blog: Guix packaging tutorial, Pierre Neidhardt, 2018/09/30
- Re: Blog: Guix packaging tutorial, Ludovic Courtès, 2018/09/26
- Re: Blog: Guix packaging tutorial, Pierre Neidhardt, 2018/09/26
- Re: Blog: Guix packaging tutorial, Ludovic Courtès, 2018/09/27