From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id fejrHKkaAmAYEwAA0tVLHw (envelope-from ) for ; Fri, 15 Jan 2021 22:43:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6JUoGKkaAmDiLAAAB5/wlQ (envelope-from ) for ; Fri, 15 Jan 2021 22:43:53 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 33E979403A9 for ; Fri, 15 Jan 2021 22:43:53 +0000 (UTC) Received: from localhost ([::1]:48786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0Xou-0002oU-07 for larch@yhetil.org; Fri, 15 Jan 2021 17:43:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Xnm-0001rc-8q for guix-devel@gnu.org; Fri, 15 Jan 2021 17:42:42 -0500 Received: from sender4-of-o55.zoho.com ([136.143.188.55]:21526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Xnj-0003gx-LP for guix-devel@gnu.org; Fri, 15 Jan 2021 17:42:42 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1610750556; cv=none; d=zohomail.com; s=zohoarc; b=BrM7utwZo8xARPFKbCScnNfDgB6Z041vSpI3S3hPP6V6E4fAKGmAc1mCWbFmYA47+91KbcBr4soNcCYp8Svssj7AaRTqsLfIqcmIT9l8QCyqnI0kD9eyMLDeZ73ke/EIXiTRUC/i5jXwBAGIsoFgMu78RkYwRrIQVzQdX0tXT2o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610750556; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=3BIXA+4voTMMJa5+IzGFKxuHHoFrkPpYlMBV7ZJqk8c=; b=W7nO57QYvMv5OIKwIvOfwUM9qZ+6UEEnhaW5rmH00x4iRj9D5QmCnhFfhqtFh5o1uTGPLAZuJdo8+WsDvrkxv9494tam3QP/y+cq4SZafLv5hSC7SpEu9Q+7KBGu5QBEedOhUS7BO7TMeu3B/boqFZgdWsv5cvGlpKi23TMtTEg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1610750556; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=3BIXA+4voTMMJa5+IzGFKxuHHoFrkPpYlMBV7ZJqk8c=; b=d6M320V19rf11Ala9cMkMo61xLKNbKTM5rJ1b8GmVGNRlx9MzHRX6wmBm0GjkhGe Cv0qqunvGJe5VJAjav8ToHdNr22YDOsPtrhVRKvyLkOiIxGF6K8E8qhCQwJtz9tnbye h5Q3EVSglrY39pJdTdMdztfftLikA9+FG2Ec+M9Q= Received: from localhost (p54ad4d0f.dip0.t-ipconnect.de [84.173.77.15]) by mx.zohomail.com with SMTPS id 1610750554139892.4044394757664; Fri, 15 Jan 2021 14:42:34 -0800 (PST) References: <86k0sekkj8.fsf@gmail.com> <87zh1aapzi.fsf@elephly.net> <86eeilly1y.fsf@gmail.com> <87wnwdbzyn.fsf@elephly.net> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: zimoun Subject: Re: GUIX_EXTENSIONS_PATH error? In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 15 Jan 2021 23:42:31 +0100 Message-ID: <87turhbz54.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.55; envelope-from=rekado@elephly.net; helo=sender4-of-o55.zoho.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=d6M320V1; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 33E979403A9 X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: oLJVCNugp3w4 zimoun writes: >> So if the file is at /tmp/foo/guix/extensions/bar.scm then >> $GUIX_EXTENSIONS_PATH should be /tmp/foo/guix/extensions. > > Well, I will propose to have the thing as you said before. Because > fixing (guix extensions bar) and the path $GUIX_EXTENSIONS_PATH/foo > seems reasonable but $GUIX_EXTENSIONS_PATH/foo/guix/extensions is too > redundant. It does seem so, but the idea was to reduce the number of files that Guix will have to parse before finding an extension. Extensions would be installed to the same prefix /share/guix/extensions, so Guix can set GUIX_EXTENSIONS_PATH to $profile/share/guix/extensions and not worry about having to parse all the Scheme files in $profile/share, which may be a lot =E2=80=94 for example Guix=E2=80=99s own= commands are defined in files under $profile/share, so they would end up as extensions=E2=80=A6 We can change this, but we=E2=80=99d need to agree on an as yet unused dire= ctory as the root for extensions. > Moreover, it could nice to have GUIX_EXTENSIONS_PATH look by default > in ~/.config/guix/extensions, i.e., by default > GUIX_EXTENSIONS_PATH=3D~/.config. The last part of this sentence is what I meant above: we need to avoid that, because that would cause ~/.config/guix/current/share/guile/site/3.0/guix/scripts/ to be included in the search for extensions. I have added a search path specification to the =E2=80=9Cguix=E2=80=9D pack= age itself, so that it will set GUIX_EXTENSIONS_PATH to $profile/share/guix/extensions automatically. The idea is to update the format of the =E2=80=9Cchannels.scm=E2=80=9D file to allow for the installa= tion of extra packages into the =E2=80=9Cguix pull=E2=80=9D profile (by default that=E2= =80=99s ~/.config/guix/current). This way I could say that I want the freshly pulled Guix to also install the =E2=80=9Cgwl=E2=80=9D package in the same profile, and that new Guix wo= uld automatically have the =E2=80=9Cgwl=E2=80=9D extension=E2=80=99s =E2=80=9Cw= orkflow=E2=80=9D sub-command. --=20 Ricardo