From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Parameterized packages Date: Mon, 27 Jan 2020 11:04:33 +0100 Message-ID: <87lfptcj0u.fsf@ambrevar.xyz> References: <87d0bfrxr1.fsf@gnu.org> <87tv4qjy06.fsf@ambrevar.xyz> <875zh6rm5h.fsf@ambrevar.xyz> <87lfq1q7ea.fsf@ambrevar.xyz> <87zhefq0ih.fsf@ambrevar.xyz> <20200124215645.dalemg5qbkpai37m@n0> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36992) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw1G4-0002Qj-2e for guix-devel@gnu.org; Mon, 27 Jan 2020 05:04:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw1G2-0005Fg-9n for guix-devel@gnu.org; Mon, 27 Jan 2020 05:04:39 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:46115) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iw1G2-000582-3P for guix-devel@gnu.org; Mon, 27 Jan 2020 05:04:38 -0500 In-Reply-To: <20200124215645.dalemg5qbkpai37m@n0> 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: ison , zimoun Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable ison writes: > My understanding of the global definitions they're talking about is that > they would just be meta objects, not global preferences. > For example (maybe it won't look like this, but just a guess): > Instead of passing the arguments "mpv" and "3.7" into your function you'd > give the parameters: > '((video-player . "mpv") > (python-version . "3.7")) > to the package. > video-player and python-version would be globally defined meta objects > that just give descriptions about what these parameters should be used for > and such (so users can read more information about package parameters when > looking up packages). But the actual values that get used by the package > are not global, they're passed into the package just like your function > example. > > I hope I'm not missing something here, but this is how I was reading the > conversation. You are correct, this is precisely what I meant. Does that make more sense, Simon? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl4utbEACgkQm9z0l6S7 zH8l7Qf/VsRZ/EJwOY7ygENELrrJDj0WKemAF7sYzn8OoISG17YKllmwzs2iW3xP v3OoNZu6IUBhXYfRP6crpsNwC1dj7fiKBiLV+xKH0Cu/rZqe2wMNBTzq2e5jJ3CL SVJXHjLo72utzZnT0MCZleCzEk9VHFoB2/xNLXEgu8t+rFBS76w3ibIYIWqq0FOF ufFIcYeV4YBTO1tQpjcXGJKkpf59o10lm1qtMrvqZhPk6vIpsfY5h4UAnQxfWoDo JV9i5hN5tcDrdqbDJ4lu37ib9bb0k1GYMkaoe/CtgVy9XdDyBYa57BPloVwNMp/p wWCGl78kZVEZsbbNTF/lFyVDaVECjw== =1m8+ -----END PGP SIGNATURE----- --=-=-=--