From patchwork Fri Dec 23 22:20:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denis 'GNUtoo' Carikli X-Patchwork-Id: 45554 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 1B99427BBED; Fri, 23 Dec 2022 22:21:21 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS 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 AAFE727BBE9 for ; Fri, 23 Dec 2022 22:21:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8qPb-0005Ge-Nc; Fri, 23 Dec 2022 17:21:07 -0500 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 ) id 1p8qPW-0005G6-9I for guix-patches@gnu.org; Fri, 23 Dec 2022 17:21:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8qPW-0000PX-1J for guix-patches@gnu.org; Fri, 23 Dec 2022 17:21:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p8qPV-0002fz-Sy for guix-patches@gnu.org; Fri, 23 Dec 2022 17:21:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60288] [PATCH v1 1/2] build-system/copy: Add #:substitutable? argument. References: <20221220052349.4965-1-GNUtoo@cyberdimension.org> In-Reply-To: <20221220052349.4965-1-GNUtoo@cyberdimension.org> Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Dec 2022 22:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60288 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60288@debbugs.gnu.org Cc: Denis 'GNUtoo' Carikli Received: via spool by 60288-submit@debbugs.gnu.org id=B60288.167183405110249 (code B ref 60288); Fri, 23 Dec 2022 22:21:01 +0000 Received: (at 60288) by debbugs.gnu.org; 23 Dec 2022 22:20:51 +0000 Received: from localhost ([127.0.0.1]:39141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8qPK-0002fF-R0 for submit@debbugs.gnu.org; Fri, 23 Dec 2022 17:20:51 -0500 Received: from cyberdimension.org ([80.67.179.20]:45664 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8qPJ-0002f9-Mo for 60288@debbugs.gnu.org; Fri, 23 Dec 2022 17:20:50 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id d94ef718; Fri, 23 Dec 2022 22:16:32 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 47a51e70; Fri, 23 Dec 2022 22:16:32 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Fri, 23 Dec 2022 23:20:23 +0100 Message-Id: <20221223222024.13805-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.38.1 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * guix/build-system/copy.scm (copy-build): Add 'substitutable?' argument. --- guix/build-system/copy.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guix/build-system/copy.scm b/guix/build-system/copy.scm index 4894ba46fb..bb4d2daaa8 100644 --- a/guix/build-system/copy.scm +++ b/guix/build-system/copy.scm @@ -96,7 +96,8 @@ (define* (copy-build name inputs (target #f) (imported-modules %copy-build-system-modules) (modules '((guix build copy-build-system) - (guix build utils)))) + (guix build utils))) + (substitutable? #t)) "Build SOURCE using INSTALL-PLAN, and with INPUTS." (define builder (with-imported-modules imported-modules @@ -129,6 +130,7 @@ (define builder (gexp->derivation name builder #:system system #:target #f + #:substitutable? substitutable? #:guile-for-build guile))) (define copy-build-system