[bug#57317,1/2] build: profiles: Always set GUIX_EXTENSIONS_PATH.
Commit Message
* 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(+)
@@ -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)