aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2024-01-16 09:22:08 +0100
committerJanneke Nieuwenhuizen <janneke@gnu.org>2024-04-07 16:26:28 +0200
commit78390634d76c0c75c6e93742fa7caec965194641 (patch)
treef5b90ae347924029912f39823f0f1d934482f280 /etc
parent0fa6ba879af5625a3220f94fd699d5fae9e999d4 (diff)
downloadguix-78390634d76c0c75c6e93742fa7caec965194641.tar
guix-78390634d76c0c75c6e93742fa7caec965194641.tar.gz
guix-install.sh: Make Guix modules available too.
* etc/guix-install.sh (GUILE_LOAD_PATH): Prepend directory to current Guix modules. (GUILE_LOAD_COMPILED_PATH): Likewise to compiled modules. Change-Id: I0b2722a38b1f8ebab32142cbc372a23cadfb0620
Diffstat (limited to 'etc')
-rwxr-xr-xetc/guix-install.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 21441baec4..72b456ee7a 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -13,6 +13,7 @@
# Copyright © 2022 Prafulla Giri <prafulla.giri@protonmail.com>
# Copyright © 2023 Andrew Tropin <andrew@trop.in>
# Copyright © 2020 David A. Redick <david.a.redick@gmail.com>
+# Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
#
# This file is part of GNU Guix.
#
@@ -642,6 +643,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
}