GNU bug report logs - #58339
[PATCH 0/2] Add simple Guix extensions as example

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: zimoun <zimon.toutoune@HIDDEN>; Keywords: moreinfo patch; dated Thu, 6 Oct 2022 16:37:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Added tag(s) moreinfo. Request was from Christopher Baines <mail@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 58339 <at> debbugs.gnu.org:


Received: (at 58339) by debbugs.gnu.org; 8 Oct 2022 09:44:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 08 05:44:05 2022
Received: from localhost ([127.0.0.1]:38268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oh6NI-0002q9-Rq
	for submit <at> debbugs.gnu.org; Sat, 08 Oct 2022 05:44:05 -0400
Received: from mail-ed1-f66.google.com ([209.85.208.66]:43615)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <liliana.prikler@HIDDEN>) id 1oh6NG-0002pX-LS
 for 58339 <at> debbugs.gnu.org; Sat, 08 Oct 2022 05:44:03 -0400
Received: by mail-ed1-f66.google.com with SMTP id z3so8936524edc.10
 for <58339 <at> debbugs.gnu.org>; Sat, 08 Oct 2022 02:44:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject
 :date:message-id:reply-to;
 bh=dMxrVXR20xQII6WdyLL4bGeqSBd8QQqTH/wd6+ZoZIQ=;
 b=RGrWg38OYZLi9bmye8sRxAV7rRKzvZTkUPmQg56t1KbDFWGJGkGdH1t6PljVTR4uBv
 YSYWe3v/+z7UvJOy+e+hBAhmdOrw+0K7GTHZGZKwaMbp4jjJ7nxMco9BgTGcuVyoUlLw
 ndyronDVHIUOQBkiTg0mVkGkdnObXB90LENEm29dik2MyCctzxRvT1zoezSiNFg56Z8Z
 r0hEvkUaN8COiru+Urh2jvWAGpzBHEIYzkOWk1AQZ8VN4yr1d0WjTxjDDyAvsj77wUMn
 02iD64t3fDkF5x697/MuBxm6cgXSAzQD4JmiBle5J0nX0kfiOEPeZQAqZfPMM7Ruhgwi
 xQ2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=dMxrVXR20xQII6WdyLL4bGeqSBd8QQqTH/wd6+ZoZIQ=;
 b=xNfix/lwWDTSO1v4ca2YuIDNTXdZeQTXRAAsiyGa/FYLzfhuYsPYx7ViKxZ4lwDEIA
 okOcwgq7G91B3PtuXuEpMONo10fnEvcqb0iV5lw4+vaVg+WIuqr87qVF7XFQqBhG1kkl
 FUTdySKk+0crkVOrEZfeoSBvxAJvBVCTXcnvwmNhypL1gONdDJdSXBYcYH1aSyiAlIxn
 BMTUome/yYXH20mN1QcuEhUgxHqbH5jmIDjLt9aer1j6OGptPFRfeiEknt9LmR4VL3zx
 1rKj0BPPPqYfPcSq7ZvDL3CD5MQLu8cuKg+Sk7ar6B3D52hGwrVzcyTyEkEzSZQDufMW
 Qwvg==
X-Gm-Message-State: ACrzQf1gYsNjwzleymWtx/cFbB8q2OkOv/FhyS5+UkUr7wYHGT2SD7Nx
 1h6M062tEDLA0hQfA4pTCls=
X-Google-Smtp-Source: AMsMyM4Ll/11Pj+phRpxD9PRu7BLlq7w0JpxKRsgUFyED1s6048onr5U56ZI3yKw2m2nfqEL6CJ75A==
X-Received: by 2002:a05:6402:440c:b0:43a:1124:e56a with SMTP id
 y12-20020a056402440c00b0043a1124e56amr8567688eda.134.1665222236608; 
 Sat, 08 Oct 2022 02:43:56 -0700 (PDT)
Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at.
 [85.127.52.93]) by smtp.gmail.com with ESMTPSA id
 l26-20020a170906415a00b0078116c361d9sm2582269ejk.10.2022.10.08.02.43.55
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 08 Oct 2022 02:43:56 -0700 (PDT)
Message-ID: <d889f25cd82d37db255306d1ba1efb3caae53a2f.camel@HIDDEN>
Subject: Re: [bug#58339] =?UTF-8?Q?=E2=80=99guix?=
 =?UTF-8?Q?_shell=E2=80=99?= not working with GUIX_EXTENSIONS_PATH
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Date: Sat, 08 Oct 2022 11:43:54 +0200
In-Reply-To: <86v8ouu301.fsf@HIDDEN>
References: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
 <20221006163935.2282212-2-zimon.toutoune@HIDDEN>
 <e94febb946fbcf7eb662e3e349889c978e80b604.camel@HIDDEN>
 <871qrkujrh.fsf@HIDDEN>
 <b41131281ab6cff3cb2121c81916c586f4523e3c.camel@HIDDEN>
 <CAJ3okZ1-kLa8Q_gEVmYzDiwVc13KTLA+oJxU1cbB9fUbRkm5SA@HIDDEN>
 <00943eca15a92b5985361d14b12b6ffe9794c187.camel@HIDDEN>
 <86v8ouu301.fsf@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.46.0 
MIME-Version: 1.0
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58339
Cc: 58339 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Am Samstag, dem 08.10.2022 um 10:35 +0200 schrieb zimoun:
> Hi Liliana,
>=20
> What are we discussing if we are agreeing? ;-)
>=20
> Well, from my understanding, we are miscommunicating and somehow just
> saying the same thing using a different point of view.
>=20
>=20
> On Fri, 07 Oct 2022 at 21:28, Liliana Marie Prikler
> <liliana.prikler@HIDDEN> wrote:
> > Am Freitag, dem 07.10.2022 um 20:49 +0200 schrieb zimoun:
>=20
> > > Let start to have a simple extension that we can improve by
> > > incremental changes,
> >=20
> > My point is that we already have proper extensions in both guix and
> > other channels.=C2=A0 It's a little late to "start with a simple [one]"=
.
>=20
> What others do I miss?=C2=A0 I am only aware of gwl and guix-modules.
>=20
> What are the other extensions and from which channels?
Oh, guix-modules is included in Guix proper.  I thought it was part of
an HPC channel, my bad.

> > > The already included extension 'guix-modules' is usable using the
> > > snippet above.=C2=A0 And we teach people via a blog post on
> > > hpc.guix.info.
> >=20
> > A manual is clearly more visible than a blog post.=C2=A0 Also, even if
> > that blog post had everything, we've added blog posts to the
> > cookbook already, so it wouldn't even be that hard in this case.
>=20
> We agree, I guess.=C2=A0 Maybe it was poorly worded but I was saying that
> the current situation is not satisfying and these patches are a tiny
> first step in improving the situation.=C2=A0 Yes the manual is the
> location for the documentation and that=E2=80=99s some coming patches. :-=
)
>=20
> From my understanding, we are saying the same thing. :-)
From my understanding we are not.  Or at least not under the assumption
that you're saying that adding example extensions will somehow improve
the situation.  Again, we already have actual extensions packaged, I
don't see what the point would be in having an example one.

> > > > > --8<---------------cut here---------------start-------------
> > > > > >8---
> > > > > $ guix shell guix-modules -- guix module -h
> > > > > guix: module: command not found
> > > > > Try `guix --help' for more information.
> > > > >=20
> > > > > $ guix shell guix-modules
> > > > > [env]$ guix module -h
> > > > > guix: module: command not found
> > > > > Try `guix --help' for more information.
> > > > > --8<---------------cut here---------------end---------------
> > > > > >8---
> > >=20
> > > > In case you really didn't know how to use extensions with guix
> > > > shell, it's guix shell guix your-extension -- guix blah,
> > > > assuming
> > > > your extension works with a slightly older guix.
> > >=20
> > > As shown by my snippet above, it does not work; at least on
> > > foreign distro.
> >=20
> > Look at your snippet, then back to mine, now back to your snippet,
> > now back to mine.=C2=A0 Sadly, your snippet isn't mine, but it could be
> > mine if you added "guix" to the the packages listed before the --.
>=20
> Maybe I am wrong or maybe I miss a point but rely on the package
> =E2=80=99guix=E2=80=99 is not an option for an extension.=C2=A0 We had so=
me discussions
> [1] about that on gwl-devel some time ago =E2=80=93 which leads to
> GUIX_EXTENSION_PATH. :-)
IIUC this discussion is only tangentially related to what we're
discussing now.  At the time of writing, only the guix package provides
GUIX_EXTENSION_PATH as a search path -- similar to how glib is one of
the few packages to provide XDG_DATA_DIRS. =20

> Consider,
>=20
> =C2=A0=C2=A0=C2=A0 guix shell guix <whatever> -- guix <something>
>=20
> then two revisions of Guix are involved:
>=20
> =C2=A0 1. one by ~/.config/current/bin/guix calling the subcommand =E2=80=
=99shell=E2=80=99
> =C2=A0 2. one by =E2=80=99-- guix <something>=E2=80=99 provided here by t=
he package =E2=80=99guix=E2=80=99
>=20
> When an user runs an extension, they expect to run their current
> Guix.  For instance, consider that =E2=80=99name-version=E2=80=99 is an e=
xtension
> displaying name and version.
>=20
> --8<---------------cut here---------------start------------->8---
> (define-module (guix extensions name-version)
> =C2=A0 #:use-module (guix scripts)
> =C2=A0 #:use-module (guix ui)
> =C2=A0 #:use-module (guix packages)
> =C2=A0 #:use-module (gnu packages)
> =C2=A0 #:export (guix-name-version))
>=20
> (define-command (guix-name-version . args)
> =C2=A0 (category extension)
> =C2=A0 (synopsis "show name and version")
>=20
> =C2=A0 (let* ((pkg (car args))
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (package (specification-=
>package pkg))
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (name (package-name pack=
age))
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (version (package-versio=
n package)))
> =C2=A0=C2=A0=C2=A0 (format #t (G_ "name: ~a~%version: ~a~%") name version=
)))
> --8<---------------cut here---------------end--------------->8---
>=20
> Using Guix 65cabb0, the use of this extension reads,
>=20
> --8<---------------cut here---------------start------------->8---
> $ GUIX_EXTENSIONS_PATH=3D/tmp/name-version/guix/extensions guix name-
> version parallel
> name: parallel
> version: 20220722
>=20
> $ guix shell guix
> [env]$ GUIX_EXTENSIONS_PATH=3D/tmp/name-version/guix/extensions guix
> name-version parallel
> name: parallel
> version: 20220522
> --8<---------------cut here---------------end--------------->8---
>=20
> There is no difference with an extension and a proper module once
> configured GUIX_EXTENSIONS_PATH adequately.=C2=A0 So, equivalently:
>=20
> --8<---------------cut here---------------start------------->8---
> $ guix show parallel | recsel -p name,version
> name: parallel
> version: 20220722
>=20
> $ guix shell guix -- guix show parallel | recsel -p name,version
> name: parallel
> version: 20220522
> --8<---------------cut here---------------end--------------->8---
>=20
> That=E2=80=99s why the package guix is not provided (before --) by the
> snippets above.=C2=A0 It is not a mistake and I still maintain there is a=
n
> unexpected behaviour (bug?) for the extensions and =E2=80=99guix shell=E2=
=80=99 =E2=80=93 the
> fix you are proposing does not match the idea behind the extensions,
> IMHO.
>=20
> BTW, shell+extension is a corner case from my point of view.=C2=A0 I also
> maintain it is unrelated to this patch submission. :-)
To be fair, the actual bug here is -- as I've said in a number of
patches already -- that manifests don't have first-class search paths.
Were it not for that, you could do guix shell normally.

However, this difference in package versions, while visible, should not
be something a *simple* extension needs to care about.  Plus, I think
people have mentioned the "extensions as channels" pattern, which I
believe is what Andrew was using for Guix Home before it became
upstreamed (and might still be using).

> From the feedback I got at the lightening talk in 10 years event, I
> assume the feature is barely known.=C2=A0 I still miss what is the
> concrete objection with these patches.=C2=A0 Could you elaborate?=C2=A0 D=
o they
> break something?=C2=A0 Are they not compliant?
>=20
> I got it, you find them useless. :-) But as I said, maybe I or
> someone else will improve next =E2=80=93 is perfection not the enemy of t=
he
> good?
>=20
> The two only Guix extensions I am aware of are =E2=80=99gwl=E2=80=99 and =
=E2=80=99guix-
> modules=E2=80=99.  Both are complex and difficult starters, IMHO.=C2=A0 H=
ence
> these tiny starter examples, for what they are worth.
>=20
> I am fine to expand =E2=80=99guix-example=E2=80=99, write a section to th=
e manual,
> etc.  That=E2=80=99s the general idea with the submission of this patch. =
:-)
> Well, I am just missing the objections because these patches appears
> to me complementary and a first tiny step.
I reject the idea of including examples that are strictly less
explanatory than GNU hello -- which imho all the hitherto proposed ones
are -- as packages to install solely on the ground that gwl and guix-
modules are "complex and difficult starters".  Of course, they are
complex by the nature of the real-world problems they are trying to
solve, but that doesn't mean there are no real-world problems with
simpler solutions.

The work a novice user would have to do to understand all of guix-
example would be to `guix build -S guix-example', then understand its
code, followed by `guix edit guix-example', understand that, and
finally apply it to their use case.  Note how this includes commands
that are typically more on the contributor side.  Also note how the
code is splintered in two segments so they have to switch between the
two (or it's tangled as in the case of guix-hello, which also has its
issues).  The cookbook on the other hand can be read with the info
reader (or browser) of their choice, and is thus imho preferable.  It
also offers a better way of putting the code together without literally
writing the extension code inside the package itself.

Cheers




Information forwarded to guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.

Message received at 58339 <at> debbugs.gnu.org:


Received: (at 58339) by debbugs.gnu.org; 8 Oct 2022 08:38:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 08 04:38:00 2022
Received: from localhost ([127.0.0.1]:38197 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oh5LL-0001Ef-M3
	for submit <at> debbugs.gnu.org; Sat, 08 Oct 2022 04:38:00 -0400
Received: from mail-wm1-f42.google.com ([209.85.128.42]:51123)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1oh5LK-0001ET-Gz
 for 58339 <at> debbugs.gnu.org; Sat, 08 Oct 2022 04:37:59 -0400
Received: by mail-wm1-f42.google.com with SMTP id ay36so4110822wmb.0
 for <58339 <at> debbugs.gnu.org>; Sat, 08 Oct 2022 01:37:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=IDKzlP+ZOttSbuKhF6NhU2oogHyr6lqSlCEeDFiB3mQ=;
 b=mvgwq1Du5I1RGtKKfPCTkyTGyG7mQ+MTIx7ZWVYZqAhA1ImIR0X6PVC+8JiJbE8r9y
 TY7Wk1xDW2ty182p1snrRWcpQy1PpHLiU0+iD3VyO5bzrsz0B5bmQWN60zh1DVeV0Bdv
 TV94GkKCG+sApgP+cCxd18Kq9iVlXsKrPIrm8ZREWfwdqqUff/sJyKw6wDIRlZnUh7HC
 x65eRjlNLEfqpxhYyVgIvEbuP0aYMiPHmC0U9KVdNoqs/OqWBAWni+LBD1p2BTOCnKih
 RWStSgumoXbP+tdugIO2m/sVtT8Vxezb05O6wbqgU5N12SSWfo8kV2VwYXcKC7RyYupu
 CDdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=IDKzlP+ZOttSbuKhF6NhU2oogHyr6lqSlCEeDFiB3mQ=;
 b=tLyZwHvbjbRW6fZw4jE5ur0yeLCnKraYxQu4A8j35GBD+YHwrBUQ/FPPxsOjcg5KIK
 HLo9qdBZnFij+7d/ghxWb4EX9NbJA7Un+tigK0hbc6Y3FTtQqX7ERdS4ZzKUYzsKQB5u
 C6Hkf9PWM+9lec3wvZ+GTqZQ81LhrPX+5t0cUOg1dVBBrE3tcUO/6oT8LKhUR236+Nx1
 pH5fFnUreWeybJaFPV53BN17znjCvZGtPpoZQPzHL+sIKnSGjwTvmG9TR0cQK7dwLtiu
 RGTGZJIns1yvTztkn74LhLJdFjwBsSN9z7oZySq4yF7AozcNj586ZDwYLAgKs4MjtwdY
 YK/Q==
X-Gm-Message-State: ACrzQf0D7w3JawI25+pC2cZY8LAK8TV0a7YTKCGeeE01Pkj3m12rNwUx
 GlxOUrf5u52K7s2A1knE5kGCc6Ojb+c=
X-Google-Smtp-Source: AMsMyM6sUigheFF+hmhuWLNeAFEaYs0zCjUY+mur50xgZ2S5Ztfwq8deje3CpuWARrSK53fPQCLexQ==
X-Received: by 2002:a05:600c:384a:b0:3c4:94f6:b459 with SMTP id
 s10-20020a05600c384a00b003c494f6b459mr1218707wmr.85.1665218272494; 
 Sat, 08 Oct 2022 01:37:52 -0700 (PDT)
Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id
 v9-20020adfe4c9000000b0022cc895cc11sm3771771wrm.104.2022.10.08.01.37.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 08 Oct 2022 01:37:51 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Subject: Re: [bug#58339] =?utf-8?B?4oCZZ3VpeCBzaGVsbOKAmQ==?= not working
 with GUIX_EXTENSIONS_PATH
In-Reply-To: <00943eca15a92b5985361d14b12b6ffe9794c187.camel@HIDDEN>
References: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
 <20221006163935.2282212-2-zimon.toutoune@HIDDEN>
 <e94febb946fbcf7eb662e3e349889c978e80b604.camel@HIDDEN>
 <871qrkujrh.fsf@HIDDEN>
 <b41131281ab6cff3cb2121c81916c586f4523e3c.camel@HIDDEN>
 <CAJ3okZ1-kLa8Q_gEVmYzDiwVc13KTLA+oJxU1cbB9fUbRkm5SA@HIDDEN>
 <00943eca15a92b5985361d14b12b6ffe9794c187.camel@HIDDEN>
Date: Sat, 08 Oct 2022 10:35:26 +0200
Message-ID: <86v8ouu301.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58339
Cc: 58339 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Liliana,

What are we discussing if we are agreeing? ;-)

Well, from my understanding, we are miscommunicating and somehow just
saying the same thing using a different point of view.


On Fri, 07 Oct 2022 at 21:28, Liliana Marie Prikler <liliana.prikler@gmail.=
com> wrote:
> Am Freitag, dem 07.10.2022 um 20:49 +0200 schrieb zimoun:

>> Let start to have a simple extension that we can improve by
>> incremental changes,
>
> My point is that we already have proper extensions in both guix and
> other channels.  It's a little late to "start with a simple [one]".

What others do I miss?  I am only aware of gwl and guix-modules.

What are the other extensions and from which channels?


>> The already included extension 'guix-modules' is usable using the
>> snippet above.=C2=A0 And we teach people via a blog post on hpc.guix.inf=
o.
>
> A manual is clearly more visible than a blog post.  Also, even if that
> blog post had everything, we've added blog posts to the cookbook
> already, so it wouldn't even be that hard in this case.

We agree, I guess.  Maybe it was poorly worded but I was saying that the
current situation is not satisfying and these patches are a tiny first
step in improving the situation.  Yes the manual is the location for the
documentation and that=E2=80=99s some coming patches. :-)

From my understanding, we are saying the same thing. :-)


>> > > --8<---------------cut here---------------start------------->8---
>> > > $ guix shell guix-modules -- guix module -h
>> > > guix: module: command not found
>> > > Try `guix --help' for more information.
>> > >=20
>> > > $ guix shell guix-modules
>> > > [env]$ guix module -h
>> > > guix: module: command not found
>> > > Try `guix --help' for more information.
>> > > --8<---------------cut here---------------end--------------->8---
>>=20
>> > In case you really didn't know how to use extensions with guix
>> > shell, it's guix shell guix your-extension -- guix blah, assuming
>> > your extension works with a slightly older guix.
>>=20
>> As shown by my snippet above, it does not work; at least on foreign
>> distro.
>
> Look at your snippet, then back to mine, now back to your snippet, now
> back to mine.  Sadly, your snippet isn't mine, but it could be mine if
> you added "guix" to the the packages listed before the --.

Maybe I am wrong or maybe I miss a point but rely on the package =E2=80=99g=
uix=E2=80=99
is not an option for an extension.  We had some discussions [1] about
that on gwl-devel some time ago =E2=80=93 which leads to GUIX_EXTENSION_PAT=
H. :-)

Consider,

    guix shell guix <whatever> -- guix <something>

then two revisions of Guix are involved:

  1. one by ~/.config/current/bin/guix calling the subcommand =E2=80=99shel=
l=E2=80=99
  2. one by =E2=80=99-- guix <something>=E2=80=99 provided here by the pack=
age =E2=80=99guix=E2=80=99

When an user runs an extension, they expect to run their current Guix.
For instance, consider that =E2=80=99name-version=E2=80=99 is an extension =
displaying
name and version.

--8<---------------cut here---------------start------------->8---
(define-module (guix extensions name-version)
  #:use-module (guix scripts)
  #:use-module (guix ui)
  #:use-module (guix packages)
  #:use-module (gnu packages)
  #:export (guix-name-version))

(define-command (guix-name-version . args)
  (category extension)
  (synopsis "show name and version")

  (let* ((pkg (car args))
         (package (specification->package pkg))
         (name (package-name package))
         (version (package-version package)))
    (format #t (G_ "name: ~a~%version: ~a~%") name version)))
--8<---------------cut here---------------end--------------->8---

Using Guix 65cabb0, the use of this extension reads,

--8<---------------cut here---------------start------------->8---
$ GUIX_EXTENSIONS_PATH=3D/tmp/name-version/guix/extensions guix name-versio=
n parallel
name: parallel
version: 20220722

$ guix shell guix
[env]$ GUIX_EXTENSIONS_PATH=3D/tmp/name-version/guix/extensions guix name-v=
ersion parallel
name: parallel
version: 20220522
--8<---------------cut here---------------end--------------->8---

There is no difference with an extension and a proper module once
configured GUIX_EXTENSIONS_PATH adequately.  So, equivalently:

--8<---------------cut here---------------start------------->8---
$ guix show parallel | recsel -p name,version
name: parallel
version: 20220722

$ guix shell guix -- guix show parallel | recsel -p name,version
name: parallel
version: 20220522
--8<---------------cut here---------------end--------------->8---

That=E2=80=99s why the package guix is not provided (before --) by the snip=
pets
above.  It is not a mistake and I still maintain there is an unexpected
behaviour (bug?) for the extensions and =E2=80=99guix shell=E2=80=99 =E2=80=
=93 the fix you are
proposing does not match the idea behind the extensions, IMHO.

BTW, shell+extension is a corner case from my point of view.  I also
maintain it is unrelated to this patch submission. :-)



From the feedback I got at the lightening talk in 10 years event, I
assume the feature is barely known.  I still miss what is the concrete
objection with these patches.  Could you elaborate?  Do they break
something?  Are they not compliant?

I got it, you find them useless. :-) But as I said, maybe I or someone
else will improve next =E2=80=93 is perfection not the enemy of the good?

The two only Guix extensions I am aware of are =E2=80=99gwl=E2=80=99 and =
=E2=80=99guix-modules=E2=80=99.
Both are complex and difficult starters, IMHO.  Hence these tiny starter
examples, for what they are worth.

I am fine to expand =E2=80=99guix-example=E2=80=99, write a section to the =
manual, etc.
That=E2=80=99s the general idea with the submission of this patch. :-) Well=
, I
am just missing the objections because these patches appears to me
complementary and a first tiny step.


Cheers,
simon


1: <https://yhetil.org/guix/875zh3w3yp.fsf@HIDDEN/>




Information forwarded to guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.

Message received at 58339 <at> debbugs.gnu.org:


Received: (at 58339) by debbugs.gnu.org; 7 Oct 2022 19:29:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 15:29:09 2022
Received: from localhost ([127.0.0.1]:37409 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogt1w-0003c7-MY
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 15:29:09 -0400
Received: from mail-ej1-f67.google.com ([209.85.218.67]:41905)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <liliana.prikler@HIDDEN>) id 1ogt1v-0003be-Ix
 for 58339 <at> debbugs.gnu.org; Fri, 07 Oct 2022 15:29:08 -0400
Received: by mail-ej1-f67.google.com with SMTP id qw20so12741452ejc.8
 for <58339 <at> debbugs.gnu.org>; Fri, 07 Oct 2022 12:29:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject
 :date:message-id:reply-to;
 bh=qmsP8riBwDeyBfdPQOD1ikcSmjqFIZ0WA0ZyN5DYiyg=;
 b=cLMCLVYtg4GzeWQQuZtfHE2Om+AhVjm9kuzuO+J0G0cf4HD1gSOB88Hq2wfhgV9mS1
 jJKUOXVtcaa559/nN1QZ4WFZ8KOfTRBvjVjAAfewdDJJzpSTnG+MldOU/XT+zQUPynAP
 K7+DzksuqGvONZTnNo9x29kP3rhwilZg9tLTRNkyT4oRHwDVtdpZnwpb2EqVKJb0ETVN
 ZQk+OtuNAoW4QHlDzGwxC5SXx18JRT7gjWAprnmE80Ros5Uyr5ufARXlMZSNiVMAEF8R
 DUWTxsP3rGmBtpoSmcZ32baxMXzfZ03sf0mdAVsHM/71a3qcEtXa3biTH8OIQSex4UFD
 4I5Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=qmsP8riBwDeyBfdPQOD1ikcSmjqFIZ0WA0ZyN5DYiyg=;
 b=vKv+MeBYssflEQ6pJHOWV72uSxyS+DzDASLXxg2TnGd/vnEqeyY61X8n9THJ6cnfIY
 ehqSJgTi5QU/4VJ0Aesb5udpJtXIMSEFzeLU8OR07rMr7YA+qXyKzzvnuchtZBFPhMOn
 VvUFocg/tE93dNc5Pp7059QIOe+ofzVKc5X13jurBou+i5Ku8ClzAlm0/opWr4dyuU2s
 piAndVvHaFyxHGmhrfGnXPqnehrg77W/VFAhyX2tE37pwXI+kbJSH4wJKrIBcXKolVJ+
 ahPTDJFhljbTitRKhtwSOvay75Lrfl+IQ7hTJlnEm+HsxL7u1shsjzmM448RS0gjSy7X
 SPzw==
X-Gm-Message-State: ACrzQf26FiRNxisoN2SytxhFDgzGX48GSRvwcyTIXdw3qBGKJCcRglh/
 UhMHIBzZtkOHx6ElwIqouTc=
X-Google-Smtp-Source: AMsMyM5+TLlbf1H6GMvXwfNk9+ehsz7EUme9UVX4wa1JmgFhO+T6mKE/h2cLnhy3R5uQvmUQ8Ya39A==
X-Received: by 2002:a17:907:2bda:b0:78d:9144:fb6d with SMTP id
 gv26-20020a1709072bda00b0078d9144fb6dmr783689ejc.238.1665170941546; 
 Fri, 07 Oct 2022 12:29:01 -0700 (PDT)
Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at.
 [85.127.52.93]) by smtp.gmail.com with ESMTPSA id
 5-20020a170906308500b0078d22b0bcf2sm1635269ejv.168.2022.10.07.12.29.00
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 07 Oct 2022 12:29:01 -0700 (PDT)
Message-ID: <00943eca15a92b5985361d14b12b6ffe9794c187.camel@HIDDEN>
Subject: Re: [bug#58339] =?UTF-8?Q?=E2=80=99guix?=
 =?UTF-8?Q?_shell=E2=80=99?= not working with GUIX_EXTENSIONS_PATH
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 07 Oct 2022 21:28:59 +0200
In-Reply-To: <CAJ3okZ1-kLa8Q_gEVmYzDiwVc13KTLA+oJxU1cbB9fUbRkm5SA@HIDDEN>
References: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
 <20221006163935.2282212-2-zimon.toutoune@HIDDEN>
 <e94febb946fbcf7eb662e3e349889c978e80b604.camel@HIDDEN>
 <871qrkujrh.fsf@HIDDEN>
 <b41131281ab6cff3cb2121c81916c586f4523e3c.camel@HIDDEN>
 <CAJ3okZ1-kLa8Q_gEVmYzDiwVc13KTLA+oJxU1cbB9fUbRkm5SA@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.46.0 
MIME-Version: 1.0
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58339
Cc: 58339 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Am Freitag, dem 07.10.2022 um 20:49 +0200 schrieb zimoun:
> Let start to have a simple extension that we can improve by
> incremental changes,
My point is that we already have proper extensions in both guix and
other channels.  It's a little late to "start with a simple [one]".

> On Fri, 7 Oct 2022 at 20:21, Liliana Marie Prikler
> <liliana.prikler@HIDDEN> wrote:
>=20
> > But that's the point.=C2=A0 Simply adding an extension =E2=80=93 whethe=
r an
> > example or an actually useful one =E2=80=93 doesn't teach users how to =
use
> > them.=C2=A0 It's missing this very information among other things.
>=20
> The answer of this is provided by the following part of my previous
> message. :-)
I might be missing it or perhaps I disagree.  Pick whichever makes
sense to you after reading this mail.

> > > For instance, let consider guix-modules [1].=C2=A0 It reads,
> > >=20
> > > --8<---------------cut here---------------start------------->8---
> > > $ guix install guix-modules
> > > $ export GUIX_EXTENSIONS_PATH=3D"$HOME/.guix-
> > > profile/share/guix/extensions"
> > > --8<---------------cut here---------------end--------------->8---
>=20
> The already included extension 'guix-modules' is usable using the
> snippet above.=C2=A0 And we teach people via a blog post on hpc.guix.info=
.
A manual is clearly more visible than a blog post.  Also, even if that
blog post had everything, we've added blog posts to the cookbook
already, so it wouldn't even be that hard in this case.

> > > --8<---------------cut here---------------start------------->8---
> > > $ guix shell guix-modules -- guix module -h
> > > guix: module: command not found
> > > Try `guix --help' for more information.
> > >=20
> > > $ guix shell guix-modules
> > > [env]$ guix module -h
> > > guix: module: command not found
> > > Try `guix --help' for more information.
> > > --8<---------------cut here---------------end--------------->8---
>=20
> > In case you really didn't know how to use extensions with guix
> > shell, it's guix shell guix your-extension -- guix blah, assuming
> > your extension works with a slightly older guix.
>=20
> As shown by my snippet above, it does not work; at least on foreign
> distro.
Look at your snippet, then back to mine, now back to your snippet, now
back to mine.  Sadly, your snippet isn't mine, but it could be mine if
you added "guix" to the the packages listed before the --.

Cheers




Information forwarded to guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.

Message received at 58339 <at> debbugs.gnu.org:


Received: (at 58339) by debbugs.gnu.org; 7 Oct 2022 18:49:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 14:49:21 2022
Received: from localhost ([127.0.0.1]:37362 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogsPQ-0002dJ-LU
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 14:49:20 -0400
Received: from mail-pj1-f51.google.com ([209.85.216.51]:45014)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1ogsPO-0002d5-3Y
 for 58339 <at> debbugs.gnu.org; Fri, 07 Oct 2022 14:49:18 -0400
Received: by mail-pj1-f51.google.com with SMTP id
 t10-20020a17090a4e4a00b0020af4bcae10so5451943pjl.3
 for <58339 <at> debbugs.gnu.org>; Fri, 07 Oct 2022 11:49:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=IOsLKp45zDVoGlzh+bheXfueRtzyBVXQOZF1e5PinDc=;
 b=fqaSBqoiqaEDSYIhJwpo2ejl4cLEOLtBaVlXGxPbcRy/iVkKG3iBk5EbP2mgiH5Jbz
 aG8OgMi1LTrrNUpItovTZ1yoD6vfmA+CGnSNyYZpAGbzCgYkBiGqIj55JIXFnYqfXXrw
 aPpLLZYNHVpRx2c6TrNMX3W8t9VIbm4hdB+IP6SOYre67+6EzNkIvxyG+XHEE5IztiUz
 2NnsehdhzpiEi3wfOqpD3O2xInS2UmtAs/ZW/1Xe9kwIBYa+9bEHAuJfrszcUle5c+Iq
 /8R1zoGLTYJ8M8JHWopG9PgydQIzYqoJam0cXSvBdCwXjr8GFRKttM5C3OIxhaDN4aWQ
 V/gw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=IOsLKp45zDVoGlzh+bheXfueRtzyBVXQOZF1e5PinDc=;
 b=xg9pRk+PCcdmoWhmo0HVtm3XbbqFx9ncYpKJ9ng23lDTkQq4JjitwRTaFi8+k7D1s0
 TutzEIP71+NomPooTNtXBjT0B8nCZPjbfpP6QrPI1CK+h4zT65txnKnDHU/S3GrYX3hS
 EtNBJfZNYj/IEG6MOvcqsZVrBawMWqlBvgBLIktHEZN5Nwj1DxP71xwiANn3dfV6ibYp
 aSlIr6CK2EgfVEprW2KMfPrEOAJtjnDUWfjtrOe4JyMWIp9D3cqCH/+/lSNfEoDDFc4H
 bWez5YIjhxw/jUkZm0e8KnIuflR87RFneURoiYAaQdNua8mfkJPGyJp5vItuRkvlfHyu
 mQrA==
X-Gm-Message-State: ACrzQf0B8A1ECc95flEN5+MBVkIc29RTdTpiwNgn5G3yfD0xijF/bxGi
 Bm2mZM93Z8GSxiglD7Ll+4E+FSNOWF55fUy8RgY=
X-Google-Smtp-Source: AMsMyM5+V6//vJoSsQxaLJn6dBFuL5+2ArGQ1qH8pAfaV3hYTcftrqMeOWuthMN5ooRjGXYF2CfC528fs4QJ6q9SZoU=
X-Received: by 2002:a17:902:db12:b0:178:1f91:74e6 with SMTP id
 m18-20020a170902db1200b001781f9174e6mr6576526plx.100.1665168552284; Fri, 07
 Oct 2022 11:49:12 -0700 (PDT)
MIME-Version: 1.0
References: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
 <20221006163935.2282212-2-zimon.toutoune@HIDDEN>
 <e94febb946fbcf7eb662e3e349889c978e80b604.camel@HIDDEN>
 <871qrkujrh.fsf@HIDDEN>
 <b41131281ab6cff3cb2121c81916c586f4523e3c.camel@HIDDEN>
In-Reply-To: <b41131281ab6cff3cb2121c81916c586f4523e3c.camel@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 7 Oct 2022 20:49:00 +0200
Message-ID: <CAJ3okZ1-kLa8Q_gEVmYzDiwVc13KTLA+oJxU1cbB9fUbRkm5SA@HIDDEN>
Subject: =?UTF-8?Q?Re=3A_=5Bbug=2358339=5D_=E2=80=99guix_shell=E2=80=99_not_working_with_GU?=
 =?UTF-8?Q?IX=5FEXTENSIONS=5FPATH?=
To: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58339
Cc: 58339 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Liliana,

Well, I am in favor to go one foot then the other. :-)  Let start to
have a simple extension that we can improve by incremental changes,
then let add a section in the manual for having the reference
documentation, then let add a cookbook entry, etc.  Well, somehow the
perfect is the enemy of the good. :-)

It appears to me more motivational to document Guix extensions step by
step, i.e., people can contribute to the improvements, etc..  Instead
of going my way alone and then come back with a complete work.  For
what my opinion is worth.


On Fri, 7 Oct 2022 at 20:21, Liliana Marie Prikler
<liliana.prikler@HIDDEN> wrote:

> But that's the point.  Simply adding an extension =E2=80=93 whether an ex=
ample
> or an actually useful one =E2=80=93 doesn't teach users how to use them. =
 It's
> missing this very information among other things.

The answer of this is provided by the following part of my previous message=
. :-)


> > For instance, let consider guix-modules [1].  It reads,
> >
> > --8<---------------cut here---------------start------------->8---
> > $ guix install guix-modules
> > $ export GUIX_EXTENSIONS_PATH=3D"$HOME/.guix-
> > profile/share/guix/extensions"
> > --8<---------------cut here---------------end--------------->8---

The already included extension 'guix-modules' is usable using the
snippet above.  And we teach people via a blog post on hpc.guix.info.


> > --8<---------------cut here---------------start------------->8---
> > $ guix shell guix-modules -- guix module -h
> > guix: module: command not found
> > Try `guix --help' for more information.
> >
> > $ guix shell guix-modules
> > [env]$ guix module -h
> > guix: module: command not found
> > Try `guix --help' for more information.
> > --8<---------------cut here---------------end--------------->8---

> In case you really didn't know how to use extensions with guix shell,
> it's guix shell guix your-extension -- guix blah, assuming your
> extension works with a slightly older guix.

As shown by my snippet above, it does not work; at least on foreign distro.

Cheers,
simon




Information forwarded to guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.

Message received at 58339 <at> debbugs.gnu.org:


Received: (at 58339) by debbugs.gnu.org; 7 Oct 2022 18:21:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 14:21:47 2022
Received: from localhost ([127.0.0.1]:37344 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogryk-0001qv-Uw
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 14:21:47 -0400
Received: from mail-ej1-f66.google.com ([209.85.218.66]:35677)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <liliana.prikler@HIDDEN>) id 1ogryi-0001qi-Cv
 for 58339 <at> debbugs.gnu.org; Fri, 07 Oct 2022 14:21:44 -0400
Received: by mail-ej1-f66.google.com with SMTP id k2so13093079ejr.2
 for <58339 <at> debbugs.gnu.org>; Fri, 07 Oct 2022 11:21:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=k3ahC5tG841LT14W1l5/YdYfk4m6IQkdGlRjKm2P66M=;
 b=GVo5lHuvTm7pMP+uH6Sww7LGWhX35gHS9KlKwvzSFqnbrInMYobh3JwZPJb6mJPPgF
 6uOzPaRbwTkD4RvBdqsMPvQzXDTxmEOJWMgCiX0m/cuc8mJFC3RaYydykD0lOJXMyL+F
 OfClEevF2vgjurCfPNBlyckhG7ofiz3ZiYwMTExgbEGwcLTOKSe5k7C1kTvZgXxS5g+U
 UIION+XFDqB8fBt4IU+rgCJqmSkLYTwSzW7zBVILPGdkHYMzzWIFHjDfLRxfoT7CaOKj
 Zj+QA1/LiYry1W9CzTKLUgn3YRUXnwOCl/+vJ6uq2YDGUQolX8ugP7tR5dXhzbbWdXNr
 d+Fg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=k3ahC5tG841LT14W1l5/YdYfk4m6IQkdGlRjKm2P66M=;
 b=sjdLR2UBxvHWACUMBsrZeGuJjNqRrNJpKk8mma3MpK0Ne+JL/RvMPWc15Xat2Ins12
 sEsf/mXRYMwR++ixhuDWnRj1AWk0CbLa8+3/61a+brARZa1Aw+WzXrEqVYe1CPjIvFYn
 jlXZPAUGTG5vlMd9w9IErNupUMYSV7amCYa8D2xr9ySnyC/8DtZ7us4D+LxQ2rCEQg4l
 +1/hI/s6iCjdtz7MHY6ZqiLt8cGeegNF+bukEp2xminxuPjqWyIxKBXAgaW2chQzJznj
 Xp4+DlUpFx3OkNFwQCuttA/V04/ordD88ytbdIU+OwXD5XrsXLrPtV/x6JfKrQvuqcvc
 EHTg==
X-Gm-Message-State: ACrzQf0yaonI+cwER/pQmxHazocA4gyNhgC7qFlyzPEYuvfQ9gb7a8Q0
 trdNGCN0djWwncoTPy+bVk0=
X-Google-Smtp-Source: AMsMyM4ED90Wu9ZyhTxzk83XIFdCnEFfl3AQblXCa/aolbzSp40ooMB7OszE6g9ZAiKIwEw8RNEZwA==
X-Received: by 2002:a17:906:5a73:b0:78d:459a:68ce with SMTP id
 my51-20020a1709065a7300b0078d459a68cemr5181316ejc.107.1665166898189; 
 Fri, 07 Oct 2022 11:21:38 -0700 (PDT)
Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at.
 [85.127.52.93]) by smtp.gmail.com with ESMTPSA id
 mf22-20020a1709071a5600b0074136cac2e7sm1573716ejc.81.2022.10.07.11.21.37
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 07 Oct 2022 11:21:37 -0700 (PDT)
Message-ID: <b41131281ab6cff3cb2121c81916c586f4523e3c.camel@HIDDEN>
Subject: Re: [bug#58339] =?UTF-8?Q?=E2=80=99guix?=
 =?UTF-8?Q?_shell=E2=80=99?= not working with GUIX_EXTENSIONS_PATH
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>, 58339 <at> debbugs.gnu.org
Date: Fri, 07 Oct 2022 20:21:36 +0200
In-Reply-To: <871qrkujrh.fsf@HIDDEN>
References: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
 <20221006163935.2282212-2-zimon.toutoune@HIDDEN>
 <e94febb946fbcf7eb662e3e349889c978e80b604.camel@HIDDEN>
 <871qrkujrh.fsf@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.46.0 
MIME-Version: 1.0
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58339
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Am Freitag, dem 07.10.2022 um 10:21 +0200 schrieb zimoun:
> Hi Liliana,
>=20
> Thanks for your feedback.
>=20
> On jeu., 06 oct. 2022 at 21:58, Liliana Marie Prikler
> <liliana.prikler@HIDDEN> wrote:
>=20
> About this:
>=20
> > 2. Testing the extension via `guix shell'
>=20
> We need to open another issue because it is not related to the
> current patch (proposal for a simple example of an extensions); this
> point #2 is an issue about all the extensions.
But that's the point.  Simply adding an extension =E2=80=93 whether an exam=
ple
or an actually useful one =E2=80=93 doesn't teach users how to use them.  I=
t's
missing this very information among other things.

> For instance, let consider guix-modules [1].=C2=A0 It reads,
>=20
> --8<---------------cut here---------------start------------->8---
> $ guix install guix-modules
> $ export GUIX_EXTENSIONS_PATH=3D"$HOME/.guix-
> profile/share/guix/extensions"
> --8<---------------cut here---------------end--------------->8---
>=20
> and if instead, one uses a shell, it fails:
>=20
> --8<---------------cut here---------------start------------->8---
> $ guix shell guix-modules -- guix module -h
> guix: module: command not found
> Try `guix --help' for more information.
>=20
> $ guix shell guix-modules
> [env]$ guix module -h
> guix: module: command not found
> Try `guix --help' for more information.
> --8<---------------cut here---------------end--------------->8---
>=20
> Note that the variable GUIX_EXTENSIONS_PATH is listed in etc/profile,
>=20
> --8<---------------cut here---------------start------------->8---
> [env]$ cat $GUIX_ENVIRONMENT/etc/profile
> # Source this file to define all the relevant environment variables
> in Bash
> # for this profile.=C2=A0 You may want to define the 'GUIX_PROFILE'
> environment
> # variable to point to the "visible" name of the profile, like this:
> #
> #=C2=A0 GUIX_PROFILE=3D/path/to/profile ; \
> #=C2=A0 source /path/to/profile/etc/profile
> #
> # When GUIX_PROFILE is undefined, the various environment variables
> refer
> # to this specific profile generation.
>=20
> export GUIX_EXTENSIONS_PATH=3D"${GUIX_PROFILE:-
> /gnu/store/qhfy9wwzg98a0j3i88qaxdmy19rvp0s8-
> profile}/share/guix/extensions${GUIX_EXTENSIONS_PATH:+:}$GUIX_EXTENSI
> ONS_PATH"
> --8<---------------cut here---------------end--------------->8---
>=20
> Well, another issue with extensions. :-)
In case you really didn't know how to use extensions with guix shell,
it's guix shell guix your-extension -- guix blah, assuming your
extension works with a slightly older guix.

Cheers




Information forwarded to guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.

Message received at 58339 <at> debbugs.gnu.org:


Received: (at 58339) by debbugs.gnu.org; 7 Oct 2022 08:34:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 04:34:55 2022
Received: from localhost ([127.0.0.1]:34288 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogioo-0006Xj-Vf
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 04:34:55 -0400
Received: from mail-wr1-f48.google.com ([209.85.221.48]:35624)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1ogioj-0006XJ-2w
 for 58339 <at> debbugs.gnu.org; Fri, 07 Oct 2022 04:34:52 -0400
Received: by mail-wr1-f48.google.com with SMTP id u10so6186774wrq.2
 for <58339 <at> debbugs.gnu.org>; Fri, 07 Oct 2022 01:34:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:message-id:date:references:in-reply-to:subject:to:from
 :from:to:cc:subject:date;
 bh=8/ywrODQz6oFN0Lg4rYYPfFD8S8e7ez3kXv4dgkJVvE=;
 b=FCoDpjA6X5rq/FnkjkVHsEmMfg3/6qIal5375TiYvNQQbROJ4iqifTuNv6FuODeEuG
 VjtQbDOo9V0VO9TsINHv4PNnalgqXc0xnGs3VQoM+6ttu43U+0qR+oRhRKrGvyHOzXRD
 GdaH6R2e8XJtTZxoYgJ/XXDjhILsozEpObixPGctJZW02UHEei9oaIFkiFo3LOuVluPT
 ivwrqHX8KRGVnC+N3KF2J6pEMeogDkGzidJggkquCybXjcc7GVQQSfVgO3NUJdX2IxLA
 DcLqJduoO7QF+hmb+jx5Cq7TTSdGCoR6BnVUEGzxpibqHrlb7uhHo2sJzF82ymGRnWj0
 uPlA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:message-id:date:references:in-reply-to:subject:to:from
 :x-gm-message-state:from:to:cc:subject:date;
 bh=8/ywrODQz6oFN0Lg4rYYPfFD8S8e7ez3kXv4dgkJVvE=;
 b=uU9YzpuF4MPW7FCWMPckUb4mV3L52B8STnT8HMEDfA2bzCQruIAeOY512c/Pkjn+bs
 Z+NPhKOCWdtas/n+MEQjQfHrzmfhPI5LSmAZQkdzUpyOt/sxJi8akuV02yGUS4QcR599
 cnlgv2fb3/UGWK9dDgl9YJwO3UsQNheoaIw9a1sdypO+Cq1d0RD4Oz9M6hEdbzmN/ers
 ETFaqPn/WkbxxYVtWWedcRtsfXkSKDW213fz0mNx3Al5NhcbhI0x5CoQY/IJt9pK+nSk
 FwW5OekZjNAKo27ecrhYMP0tYkgASeb2phDELDJiHRQ9NG0RH5wIq6tGDQ9G1uCnXzPY
 HtaQ==
X-Gm-Message-State: ACrzQf3vVlZR+/WvSP/3Zc6xXPxQlODUyZE6dHZmDpzUTrQst+uKLSbh
 VT3dk9LabvHl46TJxS6WrlfklKfHTjg=
X-Google-Smtp-Source: AMsMyM5ffNYy7iMT76c5fo3aE21Tz0KJ3T8AB0LZxhalBfiExvAPKzZ8PzKiEMkiQ+MpqnY66Y3sXA==
X-Received: by 2002:a05:6000:681:b0:22a:3007:df45 with SMTP id
 bo1-20020a056000068100b0022a3007df45mr2295320wrb.149.1665131682954; 
 Fri, 07 Oct 2022 01:34:42 -0700 (PDT)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 z12-20020a05600c0a0c00b003b497138093sm1588774wmp.47.2022.10.07.01.34.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 07 Oct 2022 01:34:42 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: Liliana Marie Prikler <liliana.prikler@HIDDEN>, 58339 <at> debbugs.gnu.org
Subject: Re: [bug#58339] =?utf-8?B?4oCZZ3VpeCBzaGVsbOKAmQ==?= not working
 with GUIX_EXTENSIONS_PATH
In-Reply-To: <e94febb946fbcf7eb662e3e349889c978e80b604.camel@HIDDEN>
References: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
 <20221006163935.2282212-2-zimon.toutoune@HIDDEN>
 <e94febb946fbcf7eb662e3e349889c978e80b604.camel@HIDDEN>
Date: Fri, 07 Oct 2022 10:21:06 +0200
Message-ID: <871qrkujrh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58339
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Liliana,

Thanks for your feedback.

On jeu., 06 oct. 2022 at 21:58, Liliana Marie Prikler <liliana.prikler@HIDDEN> wrote:

About this:

> 2. Testing the extension via `guix shell'

We need to open another issue because it is not related to the current
patch (proposal for a simple example of an extensions); this point #2 is
an issue about all the extensions.

For instance, let consider guix-modules [1].  It reads,

--8<---------------cut here---------------start------------->8---
$ guix install guix-modules
$ export GUIX_EXTENSIONS_PATH="$HOME/.guix-profile/share/guix/extensions"
--8<---------------cut here---------------end--------------->8---

and if instead, one uses a shell, it fails:

--8<---------------cut here---------------start------------->8---
$ guix shell guix-modules -- guix module -h
guix: module: command not found
Try `guix --help' for more information.

$ guix shell guix-modules
[env]$ guix module -h
guix: module: command not found
Try `guix --help' for more information.
--8<---------------cut here---------------end--------------->8---

Note that the variable GUIX_EXTENSIONS_PATH is listed in etc/profile,

--8<---------------cut here---------------start------------->8---
[env]$ cat $GUIX_ENVIRONMENT/etc/profile
# Source this file to define all the relevant environment variables in Bash
# for this profile.  You may want to define the 'GUIX_PROFILE' environment
# variable to point to the "visible" name of the profile, like this:
#
#  GUIX_PROFILE=/path/to/profile ; \
#  source /path/to/profile/etc/profile
#
# When GUIX_PROFILE is undefined, the various environment variables refer
# to this specific profile generation.

export GUIX_EXTENSIONS_PATH="${GUIX_PROFILE:-/gnu/store/qhfy9wwzg98a0j3i88qaxdmy19rvp0s8-profile}/share/guix/extensions${GUIX_EXTENSIONS_PATH:+:}$GUIX_EXTENSIONS_PATH"
--8<---------------cut here---------------end--------------->8---

Well, another issue with extensions. :-)

1:
<https://hpc.guix.info/blog/2022/05/back-to-the-future-modules-for-guix-packages/>


Cheers,
simon




Information forwarded to guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.

Message received at 58339 <at> debbugs.gnu.org:


Received: (at 58339) by debbugs.gnu.org; 6 Oct 2022 19:58:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 15:58:36 2022
Received: from localhost ([127.0.0.1]:33601 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogX0u-0003iQ-7x
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 15:58:36 -0400
Received: from mail-ed1-f67.google.com ([209.85.208.67]:47038)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <liliana.prikler@HIDDEN>) id 1ogX0o-0003i7-Ok
 for 58339 <at> debbugs.gnu.org; Thu, 06 Oct 2022 15:58:34 -0400
Received: by mail-ed1-f67.google.com with SMTP id m15so4298846edb.13
 for <58339 <at> debbugs.gnu.org>; Thu, 06 Oct 2022 12:58:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date;
 bh=lFuk1VkPX7YeI/wa8S/2IgmJpAv0+yAxpdpzwfY2wXI=;
 b=g/T8Csm0wQNAp8w/DJ8Pj+bof9+eOkt4sv6mGbKqcPGx4TIBCBnm5v8A5jigPIWXlg
 gXb74IOKJOkJq/B4TmutyhtiHFujGGqx2RJ9RiZfDRpeS+qo5zMIql3K5edu+U+npadI
 Ex6+35OdPZFjYQIZmga6aOWoNcoiLEs9hzSsm2aD5odwGo4/qcddZvVnOp8m5lnlH///
 XUqZtcKeQndTCkmVyToSBtzKSZq1+8r1JEyq674bd8sLXCNavvjlhDufKV+ZsQhqTFTt
 k9gQuqQCyosz+xlGu/qnqfeUU5OGZC/uqUboCpC/G27YkgUfQ/akLeBNSZgM577Mom9U
 Te6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from
 :to:cc:subject:date;
 bh=lFuk1VkPX7YeI/wa8S/2IgmJpAv0+yAxpdpzwfY2wXI=;
 b=bvHqWTtuP7AeGCKL/XxYB+JxMpiLdqk9alw1WA/C7PdON4Mk1eux8qnZYWp8/oYFnt
 I4nQYuB4ESfgEvD3cTVGVXqmRSTu4IA2Fg1ZVeWDUIgdVT1UNke6oTQBk0JZnUpx6Zp1
 sXhQxob1EyagEBvKghu9kx5KnKKU9PlcYdxh1C31SrQgGpr68yKNVxXI30qu7HCMyS5L
 2lbgAYAi0NLUJ1OemBw0+8kuA1Zg21DGGx9FIYtbaDc35w+rTnSiCCQskv1Aq/T0Qnfx
 BaogrxNYbCKzZm0Nn/op9hrmKS8d2sRBm48YEZAgBTEVhk4irGAyTs88P1GRPqKYXWqO
 y8uw==
X-Gm-Message-State: ACrzQf3ozdmYuboDXgaL1j0dxV5bsz9SHagcXfWoBzztcZaOp1Q7FwQX
 7q6DddeZ/3hJMEElnTLTzgY=
X-Google-Smtp-Source: AMsMyM40NYvzTH42K5WePzao48Y2MgP11s8S3UcErm++F1LHuA/4iwu4Uh/0PPznWjIlVWhpk7jA3A==
X-Received: by 2002:a05:6402:3603:b0:451:fdda:dddd with SMTP id
 el3-20020a056402360300b00451fddaddddmr1355621edb.81.1665086304646; 
 Thu, 06 Oct 2022 12:58:24 -0700 (PDT)
Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at.
 [85.127.52.93]) by smtp.gmail.com with ESMTPSA id
 y29-20020a50ce1d000000b004585eba4baesm61252edi.80.2022.10.06.12.58.23
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 06 Oct 2022 12:58:24 -0700 (PDT)
Message-ID: <e94febb946fbcf7eb662e3e349889c978e80b604.camel@HIDDEN>
Subject: Re: [PATCH 2/2] gnu: Add guix-example.
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>, 58339 <at> debbugs.gnu.org
Date: Thu, 06 Oct 2022 21:58:20 +0200
In-Reply-To: <20221006163935.2282212-2-zimon.toutoune@HIDDEN>
References: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
 <20221006163935.2282212-2-zimon.toutoune@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
User-Agent: Evolution 3.46.0 
MIME-Version: 1.0
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58339
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

QW0gRG9ubmVyc3RhZywgZGVtIDA2LjEwLjIwMjIgdW0gMTg6MzkgKzAyMDAgc2NocmllYiB6aW1v
dW46Cj4gKiBnbnUvcGFja2FnZXMvZ3VpeC1leHRlbnNpb25zLnNjbSAoZ3VpeC1leGFtcGxlKTog
TmV3IHZhcmlhYmxlLgo+IC0tLQo+IMKgZ251L3BhY2thZ2VzL2d1aXgtZXh0ZW5zaW9ucy5zY20g
fCAzOQo+ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKystCj4gwqAxIGZpbGUgY2hhbmdl
ZCwgMzggaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbigtKQo+IAo+IGRpZmYgLS1naXQgYS9nbnUv
cGFja2FnZXMvZ3VpeC1leHRlbnNpb25zLnNjbSBiL2dudS9wYWNrYWdlcy9ndWl4LQo+IGV4dGVu
c2lvbnMuc2NtCj4gaW5kZXggNjI5NGMxNWYzZC4uNjU0MTYzMGRkZCAxMDA2NDQKPiAtLS0gYS9n
bnUvcGFja2FnZXMvZ3VpeC1leHRlbnNpb25zLnNjbQo+ICsrKyBiL2dudS9wYWNrYWdlcy9ndWl4
LWV4dGVuc2lvbnMuc2NtCj4gQEAgLTE5LDcgKzE5LDQ0IEBAIChkZWZpbmUtbW9kdWxlIChnbnUg
cGFja2FnZXMgZ3VpeC1leHRlbnNpb25zKQo+IMKgwqAgIzp1c2UtbW9kdWxlIChndWl4IGdleHAp
Cj4gwqDCoCAjOnVzZS1tb2R1bGUgKGd1aXggcGFja2FnZXMpCj4gwqDCoCAjOnVzZS1tb2R1bGUg
KGd1aXggYnVpbGQtc3lzdGVtIHRyaXZpYWwpCj4gLcKgICM6dXNlLW1vZHVsZSAoZ251IHBhY2th
Z2VzIGJhc2UpKQo+ICvCoCAjOnVzZS1tb2R1bGUgKGd1aXggYnVpbGQtc3lzdGVtIGd1aWxlKQo+
ICvCoCAjOnVzZS1tb2R1bGUgKGd1aXggZ2l0LWRvd25sb2FkKQo+ICvCoCAjOnVzZS1tb2R1bGUg
KGdudSBwYWNrYWdlcyBiYXNlKQo+ICvCoCAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBwYWNr
YWdlLW1hbmFnZW1lbnQpKQo+ICsKPiArKGRlZmluZS1wdWJsaWMgZ3VpeC1leGFtcGxlCj4gK8Kg
IChsZXQgKChjb21taXQgImQ2MDBiZDc0MmRhZTlkZjg2ZTk4MGEyNWNmMWQwYWM3MWVlMDE0Mzgi
KQo+ICvCoMKgwqDCoMKgwqDCoCAocmV2aXNpb24gIjAiKSkKPiArwqDCoMKgIChwYWNrYWdlCj4g
K8KgwqDCoMKgwqAgKG5hbWUgImd1aXgtZXhhbXBsZSIpCj4gK8KgwqDCoMKgwqAgKHZlcnNpb24g
KGdpdC12ZXJzaW9uICIwIiByZXZpc2lvbiBjb21taXQpKQo+ICvCoMKgwqDCoMKgIChzb3VyY2UK
PiArwqDCoMKgwqDCoMKgIChvcmlnaW4KPiArwqDCoMKgwqDCoMKgwqDCoCAobWV0aG9kIGdpdC1m
ZXRjaCkKPiArwqDCoMKgwqDCoMKgwqDCoCAodXJpIChnaXQtcmVmZXJlbmNlCj4gK8KgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqAgKHVybCAiaHR0cHM6Ly9naXRsYWIuY29tL3ppbW91bi9ndWl4
LWV4YW1wbGUiKQo+ICvCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIChjb21taXQgY29tbWl0
KSkpCj4gK8KgwqDCoMKgwqDCoMKgwqAgKGZpbGUtbmFtZSAoc3RyaW5nLWFwcGVuZCBuYW1lIHZl
cnNpb24gIi1jaGVja291dCIpKQo+ICvCoMKgwqDCoMKgwqDCoMKgIChzaGEyNTYKPiArwqDCoMKg
wqDCoMKgwqDCoMKgIChiYXNlMzIKPiArwqDCoMKgwqDCoMKgwqDCoMKgwqAKPiAiMHM0OGI1YTFp
MHZreDVscTdqbjliNDZ6enF2MmczZGxpN2I1NHNkOTM2NWRzenFqcXpteCIpKSkpCj4gK8KgwqDC
oMKgwqAgKGJ1aWxkLXN5c3RlbSBndWlsZS1idWlsZC1zeXN0ZW0pCj4gK8KgwqDCoMKgwqAgKGFy
Z3VtZW50cwo+ICvCoMKgwqDCoMKgwqAgJygjOnBoYXNlcyAobW9kaWZ5LXBoYXNlcyAlc3RhbmRh
cmQtcGhhc2VzCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIChhZGQt
YWZ0ZXIgJ2luc3RhbGwgJ21vdmUtdG8tZXh0ZW5zaW9uLWRpcmVjdG9yeQo+ICvCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgKGxhbWJkYSogKCM6a2V5IG91dHB1dHMg
IzphbGxvdy1vdGhlci1rZXlzKQo+ICvCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgIChsZXQqICgob3V0IChhc3NvYy1yZWYgb3V0cHV0cyAib3V0IikpCj4gK8Kg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oCAodGFyZ2V0IChzdHJpbmctYXBwZW5kCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCBvdXQKPiAr
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgCj4gIi9zaGFyZS9ndWl4L2V4dGVuc2lvbnMvZXhhbXBsZS5z
Y20iKSkpCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgIChta2Rpci1wIChkaXJuYW1lIHRhcmdldCkpCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIChyZW5hbWUtZmlsZSAoY2FyIChmaW5kLWZpbGVz
IG91dAo+ICJleGFtcGxlLnNjbSIpKQo+ICvCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIHRhcmdldCkpKSkp
KSkKPiArwqDCoMKgwqDCoCAobmF0aXZlLWlucHV0cyAobGlzdCAobG9va3VwLXBhY2thZ2UtaW5w
dXQgZ3VpeCAiZ3VpbGUiKQo+IGd1aXgpKQo+ICvCoMKgwqDCoMKgIChob21lLXBhZ2UgIiIpIDsg
U2hvdWxkIGJlIGRvY3VtZW50YXRpb24gbG9jYXRpb24gZm9yCj4gR1VJWF9FWFRFTlNJT05TX1BB
VEgKTm90ZSB0aGF0IHRoaXMgZXhhbXBsZSBoYXMgYSBob21lLXBhZ2UuCj4gK8KgwqDCoMKgwqAg
KHN5bm9wc2lzICJFeGFtcGxlIG9mIEd1aXggc3ViLWNvbW1hbmQgZXh0ZW5zaW9uIikKPiArwqDC
oMKgwqDCoCAoZGVzY3JpcHRpb24gIlRoaXMgR3VpeCBleHRlbnNpb24gcHJvdmlkZXMgYSBzaW1w
bGUgZXhhbXBsZSB0bwo+IGV4dGVuZCBHdWl4IHN1YmNvbW1hbmRzLiIpCj4gK8KgwqDCoMKgwqAg
KGxpY2Vuc2UgbGljZW5zZTpncGwzKykpKSkKV2hpbGUgTHVkbyBzYWlkICJNYXliZSB3ZSBzaG91
bGQganVzdCBrZWVwIGl0IGFzIGFuIGV4YW1wbGUgaW4gdGhlCnNvdXJjZSB0cmVlPyIsIEknbSBy
ZWFsbHkgbm90IHN1cmUgd2hldGhlciB0aGF0J3MgdGhlIGJlc3QgY291cnNlIG9mCmFjdGlvbi4g
IEl0IHdpbGwgc2ltdWx0YW5lb3VzbHkgYWN0IGFzIGEgcGFja2FnZSB0aGF0IHVzZXJzIHdvbid0
IGtub3cKaG93IHRvIHVzZSAoYXMgZXZpZGVuY2VkIGJ5IHNvbWUgcGVvcGxlIG5vdyBhbmQgdGhl
biBhc2tpbmcgaG93IHRvIHJ1bgpnd2wpICphbmQqIGFzIG5vdCB0aGF0IGdyZWF0IG9mIGFuIGV4
YW1wbGUgb24gaG93IHRvIHdyaXRlIGV4dGVuc2lvbiwKYmVjYXVzZSBwZW9wbGUgb25seSBoYXZl
IHRoZSBoaXN0b3J5IG9mIHRoZSBHdWl4IHJlcG8gdG8gZ28gYnkuCgpGb3IgYSBwcm9wZXIgZ3Vp
ZGUsIEkgdGhpbmsgd2Ugc2hvdWxkIHdhbGsgdGhyb3VnaDoKCjEuIFdyaXRpbmcgYSBzYW1wbGUg
ZXh0ZW5zaW9uIChlLmcuIG9uZSBzaW1wbHkgcHJpbnRpbmcgaGVsbG8gd29ybGQpCjIuIFRlc3Rp
bmcgdGhlIGV4dGVuc2lvbiB2aWEgYGd1aXggc2hlbGwnCjMuIChQb2ludGVycyBvbikgc3VibWl0
dGluZyB0aGUgZXh0ZW5zaW9uIHRvIEd1aXggcHJvcGVyIG9yIG1hbmFnaW5nIGl0CmluIG9uZSdz
IG93biBjaGFubmVsCgpGb3Igbm93LCB3ZSBiYXJlbHkgY292ZXIgMS4KCkNoZWVycwo=





Information forwarded to guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.

Message received at 58339 <at> debbugs.gnu.org:


Received: (at 58339) by debbugs.gnu.org; 6 Oct 2022 16:39:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 12:39:53 2022
Received: from localhost ([127.0.0.1]:33377 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogTua-0002Yb-IP
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 12:39:52 -0400
Received: from mail-wr1-f53.google.com ([209.85.221.53]:36475)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1ogTuW-0002YB-R7
 for 58339 <at> debbugs.gnu.org; Thu, 06 Oct 2022 12:39:49 -0400
Received: by mail-wr1-f53.google.com with SMTP id j7so3571937wrr.3
 for <58339 <at> debbugs.gnu.org>; Thu, 06 Oct 2022 09:39:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date;
 bh=5hd1zsUjzN4zgLFAE+R5oYL7ED+3i3nPHUYXzXElBAY=;
 b=L74f1rzZA+gLVuMXOOkAuglerWJ3RL9YLe2q49h37eMbM4RfuBitMl0W7QEOSNd85T
 UO4nd6CywnNf+seVrNf9uIz+a53sgJ6yflTgBKXf0aquOHs7ieqXqzQrm3c2CzCzOBzR
 lHtzZVtQOYgfsJgRPrJpDF2gxLR1A3AtAuhudyvTG51G5I2xgA36pF+aM5R+O3bvyzRc
 qjxBzpLzF/Vs7PHvOBthtOQvWtvBZ6DOnDlrHNwhzbWRkLG4vg8Jy2otBmdrzP0vP43Y
 g8HCrEojmjjRzEDXIdPmFvzR4Sl5meG2RbJCjtY3mzUt+N3v08khKfmYQ8BAFpniZd3r
 C3kg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date;
 bh=5hd1zsUjzN4zgLFAE+R5oYL7ED+3i3nPHUYXzXElBAY=;
 b=KwYzMLILm28UdjbB8hIod56CAuv/b9VL1H+q04j/LDUEQlwK3pB/EKAgTVNuNerz7j
 T9CsU0Gjced05vqONnInltF90zaVB4Fo+uEjtGGuBqqOspnm+EheglAMPDMkpACgYmB3
 fVMKftXuGU6e75sWdFnSE0dTcd6Pucqje3HukBKrktY8WTRiD4FsisqNV+DexIxwjUib
 4YaxDhfXxY2C3Ap3uX0uBDCObzEDn8qnbS791fR0L9PQYCHpntBbmJ1MA1e+4BLRaBPf
 /MNDsmhQ1jCY6tGaPHnAibxCjTw24vKMJA8Xu4hGL7/5IRoHJ+OuGEcN4+g5RtshvAxP
 CDhw==
X-Gm-Message-State: ACrzQf1efZEgqBUTc0EiQlOR2trW7M+qGDCwkXkYDT0cJl94Tnr6zC6i
 Ly3uhFe6PaSOCVcWjmnBFcf0BbzG8fk=
X-Google-Smtp-Source: AMsMyM5iueP7SUwuOp5IbJvhlsYDu5MeiEt4+b+40Ognw2y0Z3pp5uIDfzI42VJGbbP8kWp5R5RVog==
X-Received: by 2002:adf:a40c:0:b0:22e:47fe:7ea3 with SMTP id
 d12-20020adfa40c000000b0022e47fe7ea3mr567265wra.248.1665074382605; 
 Thu, 06 Oct 2022 09:39:42 -0700 (PDT)
Received: from localhost.localdomain ([193.48.40.241])
 by smtp.gmail.com with ESMTPSA id
 w3-20020a1cf603000000b003b95ed78275sm5592534wmc.20.2022.10.06.09.39.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 06 Oct 2022 09:39:42 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: 58339 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: Add guix-hello.
Date: Thu,  6 Oct 2022 18:39:34 +0200
Message-Id: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.36.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58339
Cc: Efraim Flashner <efraim@HIDDEN>, zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Efraim Flashner <efraim@HIDDEN>

* gnu/packages/guix-extensions.scm (guix-hello): New variable.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add guix-extensions.

Co-authored-by: zimoun <zimon.toutoune@HIDDEN>
---
 gnu/local.mk                     |  1 +
 gnu/packages/guix-extensions.scm | 60 ++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 gnu/packages/guix-extensions.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index 5976cbe90c..7bf1c34995 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -299,6 +299,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/guile.scm			\
   %D%/packages/guile-wm.scm			\
   %D%/packages/guile-xyz.scm			\
+  %D%/packages/guix-extensions.scm		\
   %D%/packages/gv.scm				\
   %D%/packages/gxmessage.scm			\
   %D%/packages/hardware.scm			\
diff --git a/gnu/packages/guix-extensions.scm b/gnu/packages/guix-extensions.scm
new file mode 100644
index 0000000000..6294c15f3d
--- /dev/null
+++ b/gnu/packages/guix-extensions.scm
@@ -0,0 +1,60 @@
+;;; Copyright © 2022 Efraim Flashner <efraim@HIDDEN>
+;;; Copyright © 2022 Simon Tournier <zimon.toutoune@HIDDEN>
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages guix-extensions)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix gexp)
+  #:use-module (guix packages)
+  #:use-module (guix build-system trivial)
+  #:use-module (gnu packages base))
+
+(define-public guix-hello
+  (package
+    (name "guix-hello")
+    (version "0")
+    (source #f)
+    (build-system trivial-build-system)
+    (arguments
+     (list
+      #:modules '((guix build utils))
+      #:builder
+      #~(begin
+          (use-modules (guix build utils))
+          (let ((dest (string-append #$output
+                                     "/share/guix/extensions/hello.scm"))
+                (hello            #$(this-package-input "hello")))
+            (mkdir-p (dirname dest))
+            (with-output-to-file dest
+              (lambda ()
+                (format #t
+                        "(define-module (guix extensions hello)~@
+                #:use-module (guix scripts)~@
+                #:export (guix-hello))~@
+~@
+(define-command (guix-hello . args)~@
+                (category extension)~@
+                (synopsis \"world\")~@
+                (apply system* \"~a/bin/hello\" args))~%"
+                        hello)))))))
+    (home-page "") ; Should be documentation location for GUIX_EXTENSIONS_PATH
+    (inputs
+     (list hello))
+    (synopsis "Example of Guix sub-command extension")
+    (description "This Guix extension provides a shell redirection from
+@code{guix hello} to @code{hello}.")
+    ;; The package definition is longer than the code;
+    ;; let this serve as the declaration of the license.
+    (license license:gpl3+)))
-- 
2.36.0





Information forwarded to guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.

Message received at 58339 <at> debbugs.gnu.org:


Received: (at 58339) by debbugs.gnu.org; 6 Oct 2022 16:39:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 12:39:52 2022
Received: from localhost ([127.0.0.1]:33375 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogTua-0002YV-4d
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 12:39:52 -0400
Received: from mail-wm1-f45.google.com ([209.85.128.45]:39488)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1ogTuX-0002YE-29
 for 58339 <at> debbugs.gnu.org; Thu, 06 Oct 2022 12:39:49 -0400
Received: by mail-wm1-f45.google.com with SMTP id
 e10-20020a05600c4e4a00b003b4eff4ab2cso3148747wmq.4
 for <58339 <at> debbugs.gnu.org>; Thu, 06 Oct 2022 09:39:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:from:to:cc:subject:date;
 bh=Kl8IsQbn4jMtfcj8dJx06JJL6BK8Ynykpb8mrtKMjsg=;
 b=VOD8lffFR4aebSng4bZIrK9lP9q9Sftxd43SJiyGxqm4TYHe7ftzIyyAVso6ilwuN9
 Gm84q+oQ3K6Mt0mc4Tu1LnTkYTpUOVvNBPHUfExGfqDMMbuc1p317m9PYCMRunk+/Xl/
 SA6Ct/V2MDaONotBVfhEHCFAnWtYRyqM0RVxJtcO08tm9CkKnxnorR4Mmxn+AzJNwHdR
 gKDsiyp+S94oWshRDCxeKkYjIGGWY5rvU1B5vHQ45p7Rt51e1tCXzfWaJdzajb2OdU8x
 V5ZxtT9UJN0H8b5Zw8zpqu8fQYYc5BES6X3Yf0XkGQDwKeVFZwX+lw4bn30ZgEKt+4a4
 lYJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date;
 bh=Kl8IsQbn4jMtfcj8dJx06JJL6BK8Ynykpb8mrtKMjsg=;
 b=OakzWvpyGkT3BqEdMeWiw03SpGVd15m1UXYVtF7Aiur88b2DI6gTG/4Ov0UZIdIU/A
 OGdRotcrOrpzq4RGtjpi5iNS5i/EqFBnMy0f+f8EEB88Vm7w6SwY/7e5FokPT8BNsv+4
 bqyjNgDOPlEoiwFqVPOSuudjdCmzsudWHtfNKV66HKDzqOE9k39t3tjn3pcmxYyEOkBG
 hsLbHdIMzTNvEWRKbtNZ4Tt1fRKHSndd87IFDEQ+8ARJ+cw6tqiC9MyobYH55OnnzsY6
 DwGC/JKnLgpuEt1Ux7YghzdtxTPFCei6h+kqoQkrB6Gl+U3vStn2uc7ETHkJfIbFc5hJ
 r6Jg==
X-Gm-Message-State: ACrzQf10lf1bDXAtHNFTNx+zw8qBCsYuRWFMzLObJgVcxqlzJTYcKqic
 KN6Kh0Bp0j3hQlf8+Ruef7lsqyIO5gE=
X-Google-Smtp-Source: AMsMyM5WryAbBJvTpLQOunOfbdT/58j6OrlrcyNCiAfDCJ81FfnnD+rPsg0BWvbO5Z1H4YPu4E0Ttg==
X-Received: by 2002:a05:600c:500d:b0:3b5:234:d7e9 with SMTP id
 n13-20020a05600c500d00b003b50234d7e9mr474562wmr.57.1665074383353; 
 Thu, 06 Oct 2022 09:39:43 -0700 (PDT)
Received: from localhost.localdomain ([193.48.40.241])
 by smtp.gmail.com with ESMTPSA id
 w3-20020a1cf603000000b003b95ed78275sm5592534wmc.20.2022.10.06.09.39.42
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 06 Oct 2022 09:39:42 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: 58339 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add guix-example.
Date: Thu,  6 Oct 2022 18:39:35 +0200
Message-Id: <20221006163935.2282212-2-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.36.0
In-Reply-To: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
References: <20221006163935.2282212-1-zimon.toutoune@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58339
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/guix-extensions.scm (guix-example): New variable.
---
 gnu/packages/guix-extensions.scm | 39 +++++++++++++++++++++++++++++++-
 1 file changed, 38 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guix-extensions.scm b/gnu/packages/guix-extensions.scm
index 6294c15f3d..6541630ddd 100644
--- a/gnu/packages/guix-extensions.scm
+++ b/gnu/packages/guix-extensions.scm
@@ -19,7 +19,44 @@ (define-module (gnu packages guix-extensions)
   #:use-module (guix gexp)
   #:use-module (guix packages)
   #:use-module (guix build-system trivial)
-  #:use-module (gnu packages base))
+  #:use-module (guix build-system guile)
+  #:use-module (guix git-download)
+  #:use-module (gnu packages base)
+  #:use-module (gnu packages package-management))
+
+(define-public guix-example
+  (let ((commit "d600bd742dae9df86e980a25cf1d0ac71ee01438")
+        (revision "0"))
+    (package
+      (name "guix-example")
+      (version (git-version "0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://gitlab.com/zimoun/guix-example")
+               (commit commit)))
+         (file-name (string-append name version "-checkout"))
+         (sha256
+          (base32
+           "0s48b5a1i0vkx5lq7jn9b46zzqv2g3dli7b54sd9365dszqjqzmx"))))
+      (build-system guile-build-system)
+      (arguments
+       '(#:phases (modify-phases %standard-phases
+                    (add-after 'install 'move-to-extension-directory
+                      (lambda* (#:key outputs #:allow-other-keys)
+                        (let* ((out (assoc-ref outputs "out"))
+                               (target (string-append
+                                        out
+                                        "/share/guix/extensions/example.scm")))
+                          (mkdir-p (dirname target))
+                          (rename-file (car (find-files out "example.scm"))
+                                       target)))))))
+      (native-inputs (list (lookup-package-input guix "guile") guix))
+      (home-page "") ; Should be documentation location for GUIX_EXTENSIONS_PATH
+      (synopsis "Example of Guix sub-command extension")
+      (description "This Guix extension provides a simple example to extend Guix subcommands.")
+      (license license:gpl3+))))
 
 (define-public guix-hello
   (package
-- 
2.36.0





Information forwarded to guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Oct 2022 16:36:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 12:36:26 2022
Received: from localhost ([127.0.0.1]:33366 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogTrG-0002TQ-EX
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 12:36:26 -0400
Received: from lists.gnu.org ([209.51.188.17]:60056)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1ogTrC-0002TF-Vx
 for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 12:36:25 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40282)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1ogTrB-0003jS-N6
 for guix-patches@HIDDEN; Thu, 06 Oct 2022 12:36:22 -0400
Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:43602)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1ogTrA-0001ZZ-2M
 for guix-patches@HIDDEN; Thu, 06 Oct 2022 12:36:21 -0400
Received: by mail-wr1-x42e.google.com with SMTP id n12so3526537wrp.10
 for <guix-patches@HIDDEN>; Thu, 06 Oct 2022 09:36:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date;
 bh=6GlKL7RywGZIWrlLG8HAB5EMiaRYsKgELTDPjeNYbB8=;
 b=YP5gCC6Fs0rd0jimy8bq+zagFFe30DjeG5JyMdLtMrvc+YJU5CDrX5lF/1aRn90JXt
 MXU5ovuH0QVnX1ZZ22ajBMyH+1WeBkz+EUWua6GwcNQLEGjNryzAU9ctnCwOOCDKWxTh
 ZgAmxkPtj5HPybka9B8+MA9QtOHVsoE2Q9Kgu5RxKQEoZILcq7ofRqjAcHrQSYjcuIus
 J7XElfkgHu7EBABgQpB6hem/9V7Hr4sS9nBYT6dLx5xvOmGs3UEUFUH2dzwZT+k/oKSt
 GoJ8dbb4Y/jx5BgnDMSCaDVeeF/rrZmCgPMzHNjkOBqa+kBeq+5CLbvx5dot780hvR+O
 tS5g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date;
 bh=6GlKL7RywGZIWrlLG8HAB5EMiaRYsKgELTDPjeNYbB8=;
 b=jpabtlnKBa6pJbdciyCLuqjNjSM1zo0xb+vodtTzTEiUGZvoKAFgjeCo5ky4Sj/IWk
 FxLF5DBPGXYSB9dIGng4xPkq4Jh0uptRuvVGze70ErM+NA64o2miM4exijvXgTVsdDGg
 Y/A3SrCNJJHZrbdK2WWIiLNpyETdtNIGp4LWnRgu6GzGiFoOIlhrN+UYitvCvcem4rPZ
 a5KdvzpE3lmvkMPfNOWYOYogCaZP+tiTzsTvQlRMWfO9FLH8Slm58GevCGrmq4U5MfrI
 Wec1bW2zdWzfDFGoTxiiXezri+T/ImHt94yqR0bJYStt9OnCH8Lv5RqfOWmFOydDGn5D
 wLRw==
X-Gm-Message-State: ACrzQf0aOvOyUnZElkvMzHJv5j1eqXhHWZG/ysFx3wXpMePXFd8tIPhs
 MRVrLVasyHgKh5vg/QyVbwIQVJMRn8s=
X-Google-Smtp-Source: AMsMyM5VDolKIxqzAKX9wVFbksLCY/0FjKwP0puRihtbQtGzTFxD8vM4v/Q7PoLfrwyEWUN9o/pF8Q==
X-Received: by 2002:a5d:47a8:0:b0:226:f124:ad74 with SMTP id
 8-20020a5d47a8000000b00226f124ad74mr615287wrb.18.1665074178205; 
 Thu, 06 Oct 2022 09:36:18 -0700 (PDT)
Received: from localhost.localdomain ([193.48.40.241])
 by smtp.gmail.com with ESMTPSA id
 a22-20020a1cf016000000b003a531c7aa66sm5610109wmb.1.2022.10.06.09.36.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 06 Oct 2022 09:36:17 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH 0/2] Add simple Guix extensions as example
Date: Thu,  6 Oct 2022 18:36:09 +0200
Message-Id: <20221006163609.2280960-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.36.0
MIME-Version: 1.0
X-Debbugs-CC: Efraim Flashner <efraim@HIDDEN>
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::42e;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x42e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi,

Based on patch#57982 [1], here are two simple examples for extending Guix
subcommands.  Here are starter versions which will be improved.

The first is based on a binary; I replaced 'git-send-email' by 'hello'.

The second is based on a simple pure Guile module.  Somehow, it is the first
step to document Guix extensions as proposed at 10 years event [2].

For instance, it is not handy to manually tweak the %standard-phases of
guile-build-system when maybe we could have guix-build-system (or whatever
more relevant name, bikeshed open ;-)).  Neither to tweak the native-inputs.


1: <http://issues.guix.gnu.org/issue/57952>
2: <https://10years.guix.gnu.org/video/guix-repl-to-infinity-and-beyond/>

Cheers,
simon


Efraim Flashner (1):
  gnu: Add guix-hello.

zimoun (1):
  gnu: Add guix-example.

 gnu/local.mk                     |  1 +
 gnu/packages/guix-extensions.scm | 97 ++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)
 create mode 100644 gnu/packages/guix-extensions.scm


base-commit: 5b42b64ea89564c58325d16d3d0f4a0a03ebae0f
-- 
2.36.0





Acknowledgement sent to zimoun <zimon.toutoune@HIDDEN>:
New bug report received and forwarded. Copy sent to efraim@HIDDEN, guix-patches@HIDDEN. Full text available.
Report forwarded to efraim@HIDDEN, guix-patches@HIDDEN:
bug#58339; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 8 Dec 2022 11:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.