Marius Bakke (2016-09-09 14:10 +0100) wrote:

> Danny Milosavljevic <dan...@scratchpost.org> writes:
>
>> Hi,
>>
>> how do I use "every" in a guix package declaration?
>>
>> When I add #:modules (sfri sfri-1) I get a message that guix-build is
>> undefined (?).
>
> I think when setting #:modules, you also have to specify the
> "expected" ones, i.e. it will override the defaults rather than append.

Yes, you are absolutely right.

Danny, if you look at 'gnu-build' procedure in (guix build-system gnu)
module, you can see that the default value for 'modules' keyword is
'%default-modules' defined earlier in this module, so as Marius wrote,
when you specify #:modules argument in a package declaration, you have
to specify these default modules along with the additional ones.

> So argument would be:
>
> #:modules ((srfi srfi-1)
>            (guix build gnu-build-system)
>            (guix build utils))
>
> But I am pretty new to Guile and Guix, so take it with a grain of salt.

-- 
Alex

Reply via email to