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)