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 6p6eF0YhAmBaSAAA0tVLHw (envelope-from ) for ; Fri, 15 Jan 2021 23:12:06 +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 qM7kEkYhAmBfJwAAbx9fmQ (envelope-from ) for ; Fri, 15 Jan 2021 23:12:06 +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 E183A9402B3 for ; Fri, 15 Jan 2021 23:12:05 +0000 (UTC) Received: from localhost ([::1]:47434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0YGC-0001A6-Pz for larch@yhetil.org; Fri, 15 Jan 2021 18:12:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Y3K-000725-DF for guix-devel@gnu.org; Fri, 15 Jan 2021 17:58:46 -0500 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:41745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0Y3I-0000eb-22 for guix-devel@gnu.org; Fri, 15 Jan 2021 17:58:46 -0500 Received: by mail-qt1-x82b.google.com with SMTP id j26so7250848qtq.8 for ; Fri, 15 Jan 2021 14:58:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jETvctMxaw0Dg9+650IouJ3sq1vdV+xN72P1J+8d//g=; b=qG+VjR458qDXZJ1JphAffGsT2HEwWWJ2Bu9kXK70mBru5Qufb/yZBwJwy0sm8YHaAK NuPL4vYaXc1i8LE0BAmVv1SLefCYsiGsVFfCn2NsU0izyoqLcYBfy2gSRNGS9TFJ1n3/ f10NAZNPq/bsgNo+fTra6TQhFNz5kZWq+e624gYNDaLYo6fXkCBDehguGpk4ths44ey4 p55ybgJqhzW5qf5jk4GbGt+xjbBQXKIplyKXtmkz+6HeTIU3bhj+oYpT8NMLm1YySym/ HszMgcMhFo0F1rti5Wcv5DSgh9nzD0akA4X4pcgEB6HtxRO88BMi/84r7nb5pbtZ+D/H WO9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jETvctMxaw0Dg9+650IouJ3sq1vdV+xN72P1J+8d//g=; b=f5cBWQu0z8kR940MyCqY97aPNDBzCPKiDv+cnyeP4PKVkGdJq+Fwt37A0ouTtzuUlv 9Uh0/yRutS1d0G9wO+cyeYIPgrVBI/NiHI2V3byux6C7GNpBVGABwRa75H9RrSPiGEhn OBXH7b5gRs0SHxP35KdtSf3MhDpTlHa115udPSNDt2RH3SlNExWk+ROfQDe9wUKmFFh+ Lpi3tYyBH22hbZobUqO0Yr/L5fbpFU1JXuZM+yhayDHkA782aFEWY1woxcGS3FvHWuf3 XXmb+pk5x2JeVwu3tjtYv+yg4De8inBFIajzM4vr3suwx1EYoqunVBJZcQ4P57Whsqlf g5Ug== X-Gm-Message-State: AOAM533/7NFEU7AfB/oOT5RxI9NHfF4s7JOcZt/SOufBpca9SnXq6n1/ eA/tJt2Oh0r5wFAuaqy98c2K1iYVyGVBV9qx+JI= X-Google-Smtp-Source: ABdhPJwMsVJSQL/iUSuWL2L670n0otdkBHSd1GD9B+HF8l9uXpqs4XqdePFm8hVu8c4ztbaM/ktQYTXxmxyFebk9uS4= X-Received: by 2002:ac8:7507:: with SMTP id u7mr13818515qtq.217.1610751522005; Fri, 15 Jan 2021 14:58:42 -0800 (PST) MIME-Version: 1.0 References: <86k0sekkj8.fsf@gmail.com> <87zh1aapzi.fsf@elephly.net> <86eeilly1y.fsf@gmail.com> <87wnwdbzyn.fsf@elephly.net> <87turhbz54.fsf@elephly.net> In-Reply-To: <87turhbz54.fsf@elephly.net> From: zimoun Date: Fri, 15 Jan 2021 23:58:30 +0100 Message-ID: Subject: Re: GUIX_EXTENSIONS_PATH error? To: Ricardo Wurmus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=zimon.toutoune@gmail.com; helo=mail-qt1-x82b.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: -2.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=qG+VjR45; 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: E183A9402B3 X-Spam-Score: -2.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: Puh9x4n0xVdD Re, On Fri, 15 Jan 2021 at 23:42, Ricardo Wurmus wrote: > 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 o= wn commands are > defined in files under $profile/share, so they would end up as > extensions=E2=80=A6 Ah I see. > We can change this, but we=E2=80=99d need to agree on an as yet unused di= rectory > as the root for extensions. Well, I have to rehash a bit and then see what could be "user friendly" without typing redundancy. > > 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. Ah I see. But we could filter out this "current" from the path. In the case of default to "~/.config/guix/extensions/". Well, need some thoughts... > I have added a search path specification to the =E2=80=9Cguix=E2=80=9D pa= ckage 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 instal= lation of extra > packages into the =E2=80=9Cguix pull=E2=80=9D profile (by default that=E2= =80=99s > ~/.config/guix/current). ...because yeah that's the aim. :-) Provide extensions as channels. Cheers, simon