[bug#77528,v4,6/6] guix-install.sh: Set up extra environment variables for Guix Home.
Message ID | 48e2fe38e67f7d7384fde358adb04c1e2b3a6abe.1743736516.git.hako@ultrarare.space |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2409D27BBEE; Fri, 4 Apr 2025 04:24:59 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C05C427BBEA for <patchwork@mira.cbaines.net>; Fri, 4 Apr 2025 04:24:58 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1u0XfF-0006xm-DZ; Thu, 03 Apr 2025 23:24:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1u0Xf7-0006vj-Jl for guix-patches@gnu.org; Thu, 03 Apr 2025 23:24:11 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1u0Xf7-0002mW-B6 for guix-patches@gnu.org; Thu, 03 Apr 2025 23:24:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=QygalKEFyewEa5m3Y7fIyfO3rlKva0YRO9cu4ZPHP3A=; b=TWihdLUGTxmGbK4PNUldeKkF+VkLzGrjLaBfVhR5DvcU6HKG3RzttltWUP3hf09KVFxfm6/9nvlKKySEyYxVosYUGhYR4sxzhAEsqVpq/vkgwD8AQbmsA2ocEAQnPFkjtUf+5DNVe3XzCoBZ1jSJbitKm65takhlAkYKOsahLXIc+nCtF110B8tbIVLLJHQfXezPOsUtXvruZrPR8m5NLnOPINIRoqMLQ2PjypcmKyAiOHIyYh0GLr24aG/dcdvxjvHWpfs1uMm4h2PfWAoNYJmBbn2nQCoULJ9b3jGkeiAEXvWASF3KeCaX/k9J2721ReqAP2oKOaq8hMA20V9uMg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1u0Xf7-0002dc-4d for guix-patches@gnu.org; Thu, 03 Apr 2025 23:24:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77528] [PATCH v4 6/6] guix-install.sh: Set up extra environment variables for Guix Home. Resent-From: Hilton Chain <hako@ultrarare.space> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Apr 2025 03:24:08 +0000 Resent-Message-ID: <handler.77528.B.174373704010028@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77528 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77528@debbugs.gnu.org Cc: Hilton Chain <hako@ultrarare.space> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174373704010028 (code B ref -1); Fri, 04 Apr 2025 03:24:08 +0000 Received: (at submit) by debbugs.gnu.org; 4 Apr 2025 03:24:00 +0000 Received: from localhost ([127.0.0.1]:36550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1u0Xex-0002bf-Ru for submit@debbugs.gnu.org; Thu, 03 Apr 2025 23:24:00 -0400 Received: from lists.gnu.org ([2001:470:142::17]:32956) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <hako@ultrarare.space>) id 1u0Xet-0002aV-Q7 for submit@debbugs.gnu.org; Thu, 03 Apr 2025 23:23:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <hako@ultrarare.space>) id 1u0Xeo-0006ty-9l for guix-patches@gnu.org; Thu, 03 Apr 2025 23:23:50 -0400 Received: from mx.boiledscript.com ([88.99.243.112]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <hako@ultrarare.space>) id 1u0Xem-0002jG-Q2 for guix-patches@gnu.org; Thu, 03 Apr 2025 23:23:50 -0400 From: Hilton Chain <hako@ultrarare.space> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1743737027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QygalKEFyewEa5m3Y7fIyfO3rlKva0YRO9cu4ZPHP3A=; b=XJb9yqkWMj/4cGuZLiyYaf7zi77ka59a7GcbxmLEtVlAfsAd8ZhJS8x53HC3pLI04nq/dG zQBs1d1fEEFx5gd3qfPq4Mx/Lw3AFhf2sCdzxo3ZCdTmL78XGbtD/x+lT6UBSuqTCLa8Ys 98qyfarkSCcEpahS8aqLwwS9X3kqW8EzZq3lxz4vk60dKZOxg+rluz0AjUMRQcxs1kYOxq DbccJmxxZu9jYfRUfRb059e/KciGJHKvxM0MKmh1xlL0M/KsMY+UI5Aeg5ovL833RGKX5E 9l+anpb6X/vP7RLZPQ+h62rnvRuN9Wy7TJsEnthrhYjvqHBr5q41jn9rR4WdRQ== Date: Fri, 4 Apr 2025 11:23:03 +0800 Message-ID: <48e2fe38e67f7d7384fde358adb04c1e2b3a6abe.1743736516.git.hako@ultrarare.space> In-Reply-To: <cover.1743736516.git.hako@ultrarare.space> References: <cover.1743736516.git.hako@ultrarare.space> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=88.99.243.112; envelope-from=hako@ultrarare.space; helo=mx.boiledscript.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
system: /etc/profile: Rearrange to avoid search path duplication.
|
|
Commit Message
Hilton Chain
April 4, 2025, 3:23 a.m. UTC
* 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 }