From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: How can I set architecture/system-specific origin sources? Date: Thu, 02 Jan 2020 23:16:28 +0100 Message-ID: <877e29sdvn.fsf@gnu.org> References: <87imlwd96p.fsf@ambrevar.xyz> <87eewksnqr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44525) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in8lf-0002F9-W4 for guix-devel@gnu.org; Thu, 02 Jan 2020 17:16:37 -0500 In-Reply-To: <87eewksnqr.fsf@gmail.com> (Mathieu Othacehe's message of "Tue, 31 Dec 2019 13:06:36 +0100") 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: Mathieu Othacehe Cc: guix-devel@gnu.org Hi, Mathieu Othacehe skribis: > Well, it's not really a bug, but quite suprising at first. If you look > at the definition of 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=E2=80=99s because source is architecture-independent. = :-) The package definition for =E2=80=98mit-scheme=E2=80=99, for example, passe= s the bootstrap binaries, which are architecture-dependent, as inputs. Ludo=E2=80=99.