From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 14:21:47 2022 Received: (at 58339) by debbugs.gnu.org; 7 Oct 2022 18:21:47 +0000 Received: from localhost ([127.0.0.1]:37344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogryk-0001qv-Uw for submit@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 ) id 1ogryi-0001qi-Cv for 58339@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@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: 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 To: zimoun , 58339@debbugs.gnu.org Date: Fri, 07 Oct 2022 20:21:36 +0200 In-Reply-To: <871qrkujrh.fsf@gmail.com> References: <20221006163935.2282212-1-zimon.toutoune@gmail.com> <20221006163935.2282212-2-zimon.toutoune@gmail.com> <871qrkujrh.fsf@gmail.com> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 > 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