From: "\( via Guix-patches" via <guix-patches@gnu.org>
To: 57317@debbugs.gnu.org
Cc: "\(" <paren@disroot.org>
Subject: [bug#57317] [PATCH 1/2] build: profiles: Always set GUIX_EXTENSIONS_PATH.
Date: Sun, 21 Aug 2022 14:16:27 +0100 [thread overview]
Message-ID: <20220821131628.12592-1-paren@disroot.org> (raw)
In-Reply-To: <20220821131222.12411-1-paren@disroot.org>
* guix/build/profiles.scm (build-etc/profile): Implicitly set
GUIX_EXTENSIONS_PATH to ${GUIX_PROFILE}/share/guix/extensions.
This allows Guix to find extensions without any need for users to
set GUIX_EXTENSIONS_PATH manually.
---
guix/build/profiles.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/guix/build/profiles.scm b/guix/build/profiles.scm
index 0c92f222b4..f8b2e72d9c 100644
--- a/guix/build/profiles.scm
+++ b/guix/build/profiles.scm
@@ -97,6 +97,10 @@ (define file
# When GUIX_PROFILE is undefined, the various environment variables refer
# to this specific profile generation.
\n" port)
+ (format port "~a~%" (environment-variable-definition
+ "GUIX_EXTENSIONS_PATH"
+ (string-append output "/share/guix/extensions")
+ #:kind 'prefix))
(let ((variables (evaluate-search-paths search-paths
(list output))))
(for-each (write-environment-variable-definition port)
--
2.37.2
next prev parent reply other threads:[~2022-08-21 13:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-21 13:12 [bug#57317] [PATCH 0/2] Implicitly set GUIX_EXTENSIONS_PATH in profiles ( via Guix-patches via
2022-08-21 13:16 ` ( via Guix-patches via [this message]
2022-08-21 13:16 ` [bug#57317] [PATCH 2/2] gnu: package-management: Remove mentions of GUIX_EXTENSIONS_PATH ( via Guix-patches via
2022-08-21 15:43 ` [bug#57317] [PATCH v2 1/2] build: profiles: Implicitly set GUIX_EXTENSIONS_PATH ( via Guix-patches via
2022-08-21 15:43 ` [bug#57317] [PATCH v2 2/2] gnu: package-management: Remove mentions of GUIX_EXTENSIONS_PATH ( via Guix-patches via
2022-08-21 19:38 ` [bug#57317] [PATCH v2 1/2] build: profiles: Implicitly set GUIX_EXTENSIONS_PATH Maxime Devos
2022-08-21 19:41 ` [bug#57317] [PATCH 0/2] Implicitly set GUIX_EXTENSIONS_PATH in profiles Ricardo Wurmus
2022-08-22 9:20 ` Efraim Flashner
2022-09-07 8:46 ` bug#57317: " Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220821131628.12592-1-paren@disroot.org \
--to=guix-patches@gnu.org \
--cc=57317@debbugs.gnu.org \
--cc=paren@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).