GNU bug report logs - #77528
[PATCH v4 6/6] guix-install.sh: Set up extra environment variables for Guix Home.

Previous Next

Package: guix-patches;

Reported by: Hilton Chain <hako <at> ultrarare.space>

Date: Fri, 4 Apr 2025 03:24:08 UTC

Severity: normal

Tags: patch

Merged with 77035, 77522, 77523, 77524, 77525, 77526, 77527

Full log


View this message in rfc822 format

From: Hilton Chain <hako <at> ultrarare.space>
To: 77528 <at> debbugs.gnu.org
Cc: Hilton Chain <hako <at> ultrarare.space>
Subject: [bug#77528] [PATCH v4 6/6] guix-install.sh: Set up extra environment variables for Guix Home.
Date: Fri,  4 Apr 2025 11:23:03 +0800
* etc/guix-install.sh (sys_create_init_profile): Set up extra environment
variables for Guix Home.

Change-Id: If0508bf7c87947d89982ad17cabfbf1024a209d0
---
 etc/guix-install.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index f0d37bc384..aabfb4dda4 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -795,8 +795,10 @@ do
   esac
 done
 
-# NOTE: Guix Home handles its own profile initialization in ~/.profile. See
-# info '(guix) Configuring the Shell'.
+# Set up extra environment variables for Guix Home.
+HOME_ENVIRONMENT=$HOME/.guix-home
+[ -f "$HOME_ENVIRONMENT/setup-environment" ] && . "$HOME_ENVIRONMENT/setup-environment"
+unset HOME_ENVIRONMENT
 EOF
 }
 
-- 
2.49.0





This bug report was last modified 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.