guix-devel
[Top][All Lists]
Advanced

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

Re: How can I set architecture/system-specific origin sources?


From: Ludovic Courtès
Subject: Re: How can I set architecture/system-specific origin sources?
Date: Thu, 02 Jan 2020 23:16:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hi,

Mathieu Othacehe <address@hidden> skribis:

> Well, it's not really a bug, but quite suprising at first. If you look
> at the definition of <package> in (guix packages), you'll see that some
> fields are (thunked). %current-system and %current-target-system will
> only return valid results in (thunked) fields.
>
> As "source" is not thunked, you can make it thunked, but it can hurt
> performances. You can also make multiple packages for each architecture,
> and use them as inputs conditionned by %current-system and
> %current-target-system.

I should say that it’s because source is architecture-independent.  :-)

The package definition for ‘mit-scheme’, for example, passes the
bootstrap binaries, which are architecture-dependent, as inputs.

Ludo’.



reply via email to

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