[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#57317] [PATCH 1/2] build: profiles: Always set GUIX_EXTENSIONS_PATH
From: |
( |
Subject: |
[bug#57317] [PATCH 1/2] build: profiles: Always set GUIX_EXTENSIONS_PATH. |
Date: |
Sun, 21 Aug 2022 14:16:27 +0100 |
* 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