diff options
author | Brian Kubisiak <brian@kubisiak.com> | 2025-02-17 07:41:46 -0800 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2025-03-08 17:40:58 +0100 |
commit | 60c41183d9c47fb25270fe810d03c0785406faad (patch) | |
tree | 4ad925b8ec0a5c2d02eadf00005d610c840b3187 /gnu/packages.scm | |
parent | 70c7b4d7f0cdaa93db8232ae27e9e96a47e982ea (diff) |
ui: Search channels for guix extensions
* guix/describe.scm (append-channels-to-load-path!): New function.
* gnu/packages.scm (%package-module-path): Call new function. Remove
the code that the function call replaces.
* guix/ui.scm (extension-directories): Call new function. Search
channels for guix extensions.
* guix/self.scm (compiled-guix)[*core-modules*]: Add 'guile-git' to
the list of extensions.
Change-Id: I53af828dc554485ca28389c9e2653ea6b4fb6b7e
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages.scm')
-rw-r--r-- | gnu/packages.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/packages.scm b/gnu/packages.scm index bdd5d21940..ee99dea2ca 100644 --- a/gnu/packages.scm +++ b/gnu/packages.scm @@ -148,15 +148,16 @@ flags." (let* ((not-colon (char-set-complement (char-set #\:))) (environment (string-tokenize (or (getenv "GUIX_PACKAGE_PATH") "") not-colon)) - (channels-scm channels-go (package-path-entries))) + (channels-scm (package-path-entries))) ;; Automatically add channels and items from $GUIX_PACKAGE_PATH to Guile's ;; search path. For historical reasons, $GUIX_PACKAGE_PATH goes to the ;; front; channels go to the back so that they don't override Guix' own ;; modules. + (append-channels-to-load-path!) (set! %load-path - (append environment %load-path channels-scm)) + (append environment %load-path)) (set! %load-compiled-path - (append environment %load-compiled-path channels-go)) + (append environment %load-compiled-path)) (make-parameter (append environment |