Subject: [PATCH] guix-install.sh: Make Guix modules available too.
From: Janneke Nieuwenhuizen <[email-masked]>
To: [email-masked]
Date: Tue, 16 Jan 2024 09:27:43 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* etc/guix-install.sh (GUILE_LOAD_PATH): Prepend directory to current Guix
modules.
(GUILE_LOAD_COMPILED_PATH): Likewise to compiled modules.

Change-Id: I0b2722a38b1f8ebab32142cbc372a23cadfb0620
---
 etc/guix-install.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 982fb0a266..a0bb3a556b 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -12,6 +12,7 @@
 # Copyright © 2021, 2022, 2023 Maxim Cournoyer <[email-masked]>
 # Copyright © 2022 Prafulla Giri <[email-masked]>
 # Copyright © 2023 Andrew Tropin <[email-masked]>
+# Copyright © 2024 Janneke Nieuwenhuizen <[email-masked]>
 #
 # This file is part of GNU Guix.
 #
@@ -557,6 +558,10 @@ GUIX_LOCPATH="$GUIX_PROFILE/lib/locale:${GUIX_LOCPATH:+:}$GUIX_LOCPATH"
 
 export GUIX_LOCPATH
 
+# Make Guix modules available
+export GUILE_LOAD_PATH="$_GUIX_PROFILE/share/guile/site/3.0${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
+export GUILE_LOAD_COMPILED_PATH="$_GUIX_PROFILE/lib/guile/3.0/site-ccache${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
+
 EOF
 }

base-commit: 21f5d20d68e0359f8111ccb936905649c70db9c1
-- 
2.41.0