Hi,

Mathieu Othacehe <m.othac...@gmail.com> 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