From patchwork Sun Aug 21 13:16:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 41795 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7528D27BBEA; Sun, 21 Aug 2022 14:17:24 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 385C227BBE9 for ; Sun, 21 Aug 2022 14:17:24 +0100 (BST) Received: from localhost ([::1]:50554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPkpP-0007iF-8D for patchwork@mira.cbaines.net; Sun, 21 Aug 2022 09:17:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPkp4-0007fn-0M for guix-patches@gnu.org; Sun, 21 Aug 2022 09:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44312) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPkp3-0007Bv-Ns for guix-patches@gnu.org; Sun, 21 Aug 2022 09:17:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPkp3-0008V9-JB for guix-patches@gnu.org; Sun, 21 Aug 2022 09:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57317] [PATCH 1/2] build: profiles: Always set GUIX_EXTENSIONS_PATH. References: <20220821131222.12411-1-paren@disroot.org> In-Reply-To: <20220821131222.12411-1-paren@disroot.org> Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 Aug 2022 13:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57317 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57317@debbugs.gnu.org Cc: "\(" Received: via spool by 57317-submit@debbugs.gnu.org id=B57317.166108779432633 (code B ref 57317); Sun, 21 Aug 2022 13:17:01 +0000 Received: (at 57317) by debbugs.gnu.org; 21 Aug 2022 13:16:34 +0000 Received: from localhost ([127.0.0.1]:34059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPkoc-0008UF-6U for submit@debbugs.gnu.org; Sun, 21 Aug 2022 09:16:34 -0400 Received: from knopi.disroot.org ([178.21.23.139]:43212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPkoa-0008U1-Bp for 57317@debbugs.gnu.org; Sun, 21 Aug 2022 09:16:32 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B6FCB4008C; Sun, 21 Aug 2022 15:16:31 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XnXvtrJs7NZz; Sun, 21 Aug 2022 15:16:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1661087790; bh=+NjRLX65xVPThGb0VoZ/NPMGrxnnYc66NKF+U4FYuHU=; h=From:To:Cc:Subject:Date; b=TCm4qWbIrtqFrloP3ry+yYyG2eSPGpSbcmwSujYpUeqN4pCofh/kenGqLF2SzaYkU QQAw2oEuS51m9nQF0IBrhnixFexLa5IDqNKXpl1muErSfcclZ5y9CDcOXMZCSjxarH eFY0KXDDy8C1W82PalcluMn7uo9eklRyi+s3qllF2EfqbtX1Xnq+Imap1fTiAtxWei 0Vmkx1/QGNhf/Sr+Dg5QKauyQUEdmAXgnOyUBAYSGCd2qOzCAMK4U0JU+k93iaJpVT 0n7Mj/TpfEOxCeoNRqmeADP/t+3Q+3aQGPHlmEziAbj98TYt3PMiUv5fEnVMhTUvvS dXu/mKLDzoxdw== Date: Sun, 21 Aug 2022 14:16:27 +0100 Message-Id: <20220821131628.12592-1-paren@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * guix/build/profiles.scm (build-etc/profile): Implicitly set GUIX_EXTENSIONS_PATH to ${GUIX_PROFILE}/share/guix/extensions. This allows Guix to find extensions without any need for users to set GUIX_EXTENSIONS_PATH manually. --- guix/build/profiles.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guix/build/profiles.scm b/guix/build/profiles.scm index 0c92f222b4..f8b2e72d9c 100644 --- a/guix/build/profiles.scm +++ b/guix/build/profiles.scm @@ -97,6 +97,10 @@ (define file # When GUIX_PROFILE is undefined, the various environment variables refer # to this specific profile generation. \n" port) + (format port "~a~%" (environment-variable-definition + "GUIX_EXTENSIONS_PATH" + (string-append output "/share/guix/extensions") + #:kind 'prefix)) (let ((variables (evaluate-search-paths search-paths (list output)))) (for-each (write-environment-variable-definition port) From patchwork Sun Aug 21 13:16:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 41794 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 29A8227BBEA; Sun, 21 Aug 2022 14:17:24 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 DEA2927BBE9 for ; Sun, 21 Aug 2022 14:17:23 +0100 (BST) Received: from localhost ([::1]:50552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPkpO-0007hw-JO for patchwork@mira.cbaines.net; Sun, 21 Aug 2022 09:17:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPkp4-0007fo-EL for guix-patches@gnu.org; Sun, 21 Aug 2022 09:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPkp4-0007CA-5h for guix-patches@gnu.org; Sun, 21 Aug 2022 09:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPkp4-0008VG-1I for guix-patches@gnu.org; Sun, 21 Aug 2022 09:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57317] [PATCH 2/2] gnu: package-management: Remove mentions of GUIX_EXTENSIONS_PATH. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 Aug 2022 13:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57317 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57317@debbugs.gnu.org Cc: "\(" Received: via spool by 57317-submit@debbugs.gnu.org id=B57317.166108779432639 (code B ref 57317); Sun, 21 Aug 2022 13:17:02 +0000 Received: (at 57317) by debbugs.gnu.org; 21 Aug 2022 13:16:34 +0000 Received: from localhost ([127.0.0.1]:34061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPkoc-0008UI-G2 for submit@debbugs.gnu.org; Sun, 21 Aug 2022 09:16:34 -0400 Received: from knopi.disroot.org ([178.21.23.139]:43254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPkoa-0008U3-K5 for 57317@debbugs.gnu.org; Sun, 21 Aug 2022 09:16:33 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 00D7D4007C; Sun, 21 Aug 2022 15:16:32 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id umhWbYyeP0DZ; Sun, 21 Aug 2022 15:16:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1661087791; bh=amIHnHCB/Wx32axheV8J7VORvxzXlkv4dACqKydzFEc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=j+Pd90iwdEyI67ejs/NzbTL+AxNQBi3ipm2/lYhpE137h6aRSLUWyWr6SSyHlAMeg +zFWp7m8CVFfx+mttdYn8XnV0zPF5bwJnE6qspn9Jq8oYSHKKPRS4QPwFo8dNFbRkL 9CIEx7z3AVHmXb5wA2+Knz3sxC9VqsCHLEU2SCcl4z4CEf77Cr3lWkidJ+2uuC3aYR MFmSOx0BCATGsN1weIfE17kkXbNOz7pa9FPwbDcfbG38fOuCmvuJwj8GeqM0oKyq1y qRLAtWfduFHpT23DW5AIBrqNuF4olDtcXecdeiW4U674LrV2RBgqMTgeBWJYIA0Xb2 I2O+Oi6RtLY/g== Date: Sun, 21 Aug 2022 14:16:28 +0100 Message-Id: <20220821131628.12592-2-paren@disroot.org> In-Reply-To: <20220821131628.12592-1-paren@disroot.org> References: <20220821131628.12592-1-paren@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/package-management.scm (guix-modules)[description]: Remove instructions to set GUIX_EXTENSIONS_PATH. --- gnu/packages/package-management.scm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 0469c73ff5..a4b0905b1b 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -726,16 +726,7 @@ (define-public guix-modules module} command. The @command{guix module create} sub-command creates @dfn{environment modules}, allowing you to manipulate software environments with the @command{module} command commonly found on @acronym{HPC, -high-performance computing} clusters. - -To use this extension, set the @env{GUIX_EXTENSIONS_PATH} environment -variable, along these lines: - -@example -export GUIX_EXTENSIONS_PATH=\"$HOME/.guix-profile/share/guix/extensions\" -@end example - -Replace @code{$HOME/.guix-profile} with the appropriate profile.") +high-performance computing} clusters.") (license license:gpl3+)))