From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Parameterized packages Date: Mon, 20 Jan 2020 15:50:04 +0100 Message-ID: References: <8736ldq74z.fsf@netris.org> <20190719202906.lbanx5puk7t6q4cr@cf0> <87a7753boq.fsf@ambrevar.xyz> <87h813wah0.fsf@gnu.org> <87v9piut40.fsf@ambrevar.xyz> <87o8v5ukgb.fsf@ambrevar.xyz> <87d0blhr9s.fsf@ambrevar.xyz> <20200116190644.uytvzvypuvdwh2iq@n0> <87d0bfrxr1.fsf@gnu.org> <87tv4qjy06.fsf@ambrevar.xyz> 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]:44255) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itYNj-0002pa-KP for guix-devel@gnu.org; Mon, 20 Jan 2020 09:50:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itYNi-0006Qt-5z for guix-devel@gnu.org; Mon, 20 Jan 2020 09:50:23 -0500 In-Reply-To: <87tv4qjy06.fsf@ambrevar.xyz> 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-mx.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix Devel On Mon, 20 Jan 2020 at 10:08, Pierre Neidhardt wrote: > > Ludovic Court=C3=A8s writes: > > > I agree. =E2=80=98package-input-rewriting=E2=80=99 gives us almost wha= t you want, with > > the limitation that implicit inputs are ignored (which is a good thing > > sometimes, and a problem in cases where you want to experiment with > > toolchains, as you write). > > > > What we=E2=80=99d need is a variant of =E2=80=98package-input-rewriting= =E2=80=99 that somehow > > walks through implicit dependencies. It could do that by changing the > > build system, I guess. > > To clarify, this does not cover the extent of what "parameters" could > do, since parameters are not just about input rewriting. As we discussed here [1]: << > Should we touch implicit inputs, we would have to parse all the > references and not just the explicit inputs like --with-input does. My mind is not clear at all. What is the final aim to have parametrized packages? What does it mean "parametrized"? Does it mean extend the transformation options as Ludo described [2]. Does it mean more? >> Could you define what do you mean by "parameters"? Sorry to be slow but I am not clear about what we are talking about precisely. :-) 1. Because the initial Ludo's message was about glic-locale which is somehow an input. 2. The thread spoke also about flags =C3=A0 la Gentoo USE flags. 3. Other messages were about set X or Wayland or no-X for this or that pack= age. 4. Another were about change the toolchain of the build systems. etc. All are "parameters". :-) The solution of 1. and 4. seems to be able to re-write all the implicit inp= uts. The solution of 2. and 3. seems to write, as Ludo mentioned: --8<---------------cut here---------------start------------->8--- (define (make-me-a-package option1 option2) (package =E2=80=A6)) --8<---------------cut here---------------end--------------->8--- Well, could you clarify what do you have in mind about "parameters"? Just to stay on the wavelength and keep focus. :-) [1] https://lists.gnu.org/archive/html/guix-devel/2020-01/msg00274.html Cheers, simon