civodul pushed a commit to branch master
in repository guix.

commit 4b8952ea9ecffba6d88f5acd62c9488f8b02627f
Author: Liam Hupfer <l...@hpfr.net>
AuthorDate: Wed Feb 5 22:24:59 2025 -0600

    home: services: setup-environment: Set GUIX_LOCPATH.
    
    Locales installed via Guix Home should be exposed to Guix packages by
    default.
    
    * gnu/home/services.scm (environment-variables->setup-environment-script):
    Set GUIX_LOCPATH.
    
    Change-Id: Ic61f0832312479ba36f471d92a12e7b4e296389f
    Signed-off-by: Ludovic Courtès <l...@gnu.org>
---
 gnu/home/services.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/home/services.scm b/gnu/home/services.scm
index 453336c959..85a43f80ca 100644
--- a/gnu/home/services.scm
+++ b/gnu/home/services.scm
@@ -281,6 +281,10 @@ GUIX_PROFILE=\"$HOME_ENVIRONMENT/profile\"
 PROFILE_FILE=\"$GUIX_PROFILE/etc/profile\"
 [ -f $PROFILE_FILE ] && . $PROFILE_FILE
 
+case $GUIX_LOCPATH in
+  *$GUIX_PROFILE/lib/locale*) ;;
+  *) export GUIX_LOCPATH=$GUIX_PROFILE/lib/locale:$GUIX_LOCPATH ;;
+esac
 case $XDG_DATA_DIRS in
   *$GUIX_PROFILE/share*) ;;
   *) export XDG_DATA_DIRS=$GUIX_PROFILE/share:$XDG_DATA_DIRS ;;

Reply via email to