From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mCeNK9ewF2D3awAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 07:42:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aAlYJ9ewF2DtTwAAbx9fmQ (envelope-from ) for ; Mon, 01 Feb 2021 07:42:15 +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 40D909403A6 for ; Mon, 1 Feb 2021 07:42:15 +0000 (UTC) Received: from localhost ([::1]:45960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6Tqg-0002od-3v for larch@yhetil.org; Mon, 01 Feb 2021 02:42:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6TqU-0002oS-Rw for guix-devel@gnu.org; Mon, 01 Feb 2021 02:42:02 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:37904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6TqT-0006Y2-EZ for guix-devel@gnu.org; Mon, 01 Feb 2021 02:42:02 -0500 Received: by mail-wm1-x332.google.com with SMTP id y187so12282897wmd.3 for ; Sun, 31 Jan 2021 23:42:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=RZBI/Kr0Dh0Q50COmoAAP4gN1Nquv/8lBDb9r3SlGuQ=; b=aP9o+my5Zcztrp+slHbF57EpsK6xs807JXUy9cwG4EOCoWwwnba7sfjkLeu5fQNW6B l4bchFkW015A5EdNobMPWp4nF0AoaCB4NaFItoQ9jhVpqXOchdw9ufO7mNMHbB4117MN PdoB48s/msFtC8viCdfU4MwlSRH+HfRtfQRpgTWnhMak54/tQI483Ux56rlCcoCtYeFA 6MV7GwamrdynFkx1aUFm6b1mL90MLnQ/OQFyGUppy+AjTKhKojoVCzez89h1/QcDa3Sv 5rmqFj6VogckCpkQG0ns+fWwsC1CNChFgovml/ZL4Lp89Gfs3Taqsd6XXQPbXzKgm1SM rixw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=RZBI/Kr0Dh0Q50COmoAAP4gN1Nquv/8lBDb9r3SlGuQ=; b=Kuz+37fzESRt4Q4yau4AVWJO5fzc6dMR79nXZy9nED/cTVHbpFz6AfY2vZu7RpNdtk Oz8Ld/K9zg6u5wiSi1o+BcgnVSttFvHL3rt1A2+xgel0MCHbHkOL++iNHp7Ic+rIEZeZ giaHLP4thjnw5Oeu2PqYo2CTXjgq0xfMQc0rNVKOpNZtREZk2Lzjr8RHdmWuyYs/zDfa LNvXZ2Xmfb1/ePmVXB0EEZKsE4zAuOyncvTKBFDNKVn9MV6CTqkDBfyEcpjjt0QBN3Gq 2RKGZhDlXeFfsX5gJdkgHnwGrxp/q8jQuJif3M3km9P40C90XQsRANk6Y2vH69fvU9PH /XJg== X-Gm-Message-State: AOAM532wifsh3iXg6CUezMOJ6grF3gBe8IKmflQ4NH0oEgoKD/8SL4yT i0o092etq/aJ3EFj7FeyhDHDGnEJSjc= X-Google-Smtp-Source: ABdhPJwfW9QHyH2C2NWxheqrHf9F9cTFkGPNyfwIcIUtUI0PdA+BM2Kb4cMfoHckpRbIOvwZm4+BcQ== X-Received: by 2002:a05:600c:3515:: with SMTP id h21mr13665763wmq.179.1612165319826; Sun, 31 Jan 2021 23:41:59 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z4sm26211868wrw.38.2021.01.31.23.41.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jan 2021 23:41:59 -0800 (PST) From: zimoun To: Ricardo Wurmus Subject: GUIX_EXTENSIONS_PATH pattern In-Reply-To: <86zh19k5vv.fsf@gmail.com> References: <86k0sekkj8.fsf@gmail.com> <87zh1aapzi.fsf@elephly.net> <86eeilly1y.fsf@gmail.com> <87wnwdbzyn.fsf@elephly.net> <87turhbz54.fsf@elephly.net> <86zh19k5vv.fsf@gmail.com> Date: Mon, 01 Feb 2021 08:41:11 +0100 Message-ID: <86k0rsdylk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.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-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: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=aP9o+my5; dmarc=pass (policy=none) header.from=gmail.com; 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: 40D909403A6 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: KhywqDToEC9b Hi Ricardo, >> We can change this, but we=E2=80=99d need to agree on an as yet unused d= irectory >> as the root for extensions. > We could say that: > > 1. the prototype of GUIX_EXTENSIONS_PATH is path/to/guix > 2. the folder /extensions is implicitly appended=20 > 3. ~/.config/guix is implicitly appended Do we agree on this default? Which implies=E2=80=A6 > The patch attached does that. But, the definition of the package =E2=80= =99guix=E2=80=99 > needs to be tweaked (not done) in agreement, especially: > > --8<---------------cut here---------------start------------->8--- > (native-search-paths > (list (search-path-specification > (variable "GUIX_EXTENSIONS_PATH") > (files '("share/guix/extensions"))))) > --8<---------------cut here---------------end--------------->8--- =E2=80=A6and=E2=80=A6 >>> 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. > > It is easy to filter out by adding rules in =E2=80=99extensions-directori= es=E2=80=99. :-) =E2=80=A6that. To me, the easiest is to fix the module name as =E2=80=99(guix extensions f= oo)=E2=80=99 and since that is fixed, GUIX_EXTENSIONS_PATH should not declare explicitly =E2=80=99/extensions=E2=80=99. I get your other points about channels. From my understanding, the pattern should fixed and then some other parts tweaked in agreement. WDYT? BTW, I have not tried to adapt and makes it work for extension as subcommand. I have in mind: =E2=80=9Cguix git log=E2=80=9D or =E2=80=9Cgui= x system foo=E2=80=9D. Well, these subcommands are not defined as =E2=80=99define-command=E2=80=99 but w= e could take this road. WDYT? All the best, simon