From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Extending Guix without using the Guile load path Date: Wed, 19 Feb 2020 20:46:55 +0100 Message-ID: References: <87o8tulhci.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b9db27059ef30d56" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44344) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4VJP-0004ZD-2H for guix-devel@gnu.org; Wed, 19 Feb 2020 14:47:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4VJN-0000Ia-SR for guix-devel@gnu.org; Wed, 19 Feb 2020 14:47:11 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:33040) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4VJN-0000I2-L4 for guix-devel@gnu.org; Wed, 19 Feb 2020 14:47:09 -0500 Received: by mail-wr1-x429.google.com with SMTP id u6so2036460wrt.0 for ; Wed, 19 Feb 2020 11:47:09 -0800 (PST) In-Reply-To: <87o8tulhci.fsf@elephly.net> 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: Ricardo Wurmus Cc: Guix-devel --000000000000b9db27059ef30d56 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This looks interesting. Ricardo Wurmus ezt =C3=ADrta (id=C5=91pont: 2020. febr= . 19., Sze 16:37): > Hi Guix, > > I think it=E2=80=99s a bit difficult to install the Guix Workflow Languag= e at > this point and I=E2=80=99d like to change that. > > Currently, new sub-commands for Guix are looked up by module name on the > Guile load path. When installing the =E2=80=9Cgwl=E2=80=9D package, thou= gh, the Guile > load path is not automatically altered, so users need to set it up by > themselves. The load path is only altered automatically when users > install the =E2=80=9Cguile=E2=80=9D package. This is not a good recommen= dation because > users may have Guile 2.2 in their profile, and not Guile 3.0 or whatever > version may be needed by the extension. > > I wonder if we can make this a little nicer by letting Guix look for > sub-command scripts in directories that are listed in an environment > variable, such as GUIX_EXTENSIONS_PATH. The =E2=80=9Cguix=E2=80=9D packa= ge would set > this search path and packages wanting to provide a sub-command (such as > =E2=80=9Cguix workflow=E2=80=9D or =E2=80=9Cguix home=E2=80=9D) would arr= ange to have their scripts > placed in that sub-directory of their outputs. > I have encountered this with guix home, and one of my first setups was to adjust the path. > What do you think? > I believe this is a good idea. I also think there is an open bug already for the home thing. > -- > Ricardo > Best regards, g_bor > > --000000000000b9db27059ef30d56 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This looks interesting.

Ricardo Wurmus <rekado@elephly.net> ezt =C3=ADrta (id=C5= =91pont: 2020. febr. 19., Sze 16:37):
Hi Guix,

I think it=E2=80=99s a bit difficult to install the Guix Workflow Language = at
this point and I=E2=80=99d like to change that.

Currently, new sub-commands for Guix are looked up by module name on the Guile load path.=C2=A0 When installing the =E2=80=9Cgwl=E2=80=9D package, t= hough, the Guile
load path is not automatically altered, so users need to set it up by
themselves.=C2=A0 The load path is only altered automatically when users install the =E2=80=9Cguile=E2=80=9D package.=C2=A0 This is not a good recom= mendation because
users may have Guile 2.2 in their profile, and not Guile 3.0 or whatever version may be needed by the extension.

I wonder if we can make this a little nicer by letting Guix look for
sub-command scripts in directories that are listed in an environment
variable, such as GUIX_EXTENSIONS_PATH.=C2=A0 The =E2=80=9Cguix=E2=80=9D pa= ckage would set
this search path and packages wanting to provide a sub-command (such as
=E2=80=9Cguix workflow=E2=80=9D or =E2=80=9Cguix home=E2=80=9D) would arran= ge to have their scripts
placed in that sub-directory of their outputs.
=

I have encountered this with = guix home, and one of my first setups was to adjust the path.


What do you think?

=
I believe this is a good idea. I also think there is an o= pen bug already for the home thing.


--
Ricardo

Best regards,
g_bor

--000000000000b9db27059ef30d56--