From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EFvFONBqgGOwZwEAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 08:12:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qBLMN9BqgGOhvwAAG6o9tA (envelope-from ) for ; Fri, 25 Nov 2022 08:12:16 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B512210D89 for ; Fri, 25 Nov 2022 08:12:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oySsY-0003nS-Lt; Fri, 25 Nov 2022 02:12:06 -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 1oySsW-0003mh-Rs for guix-patches@gnu.org; Fri, 25 Nov 2022 02:12:04 -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 1oySsU-0001EU-1Z for guix-patches@gnu.org; Fri, 25 Nov 2022 02:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oySsT-0003YL-TW for guix-patches@gnu.org; Fri, 25 Nov 2022 02:12:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v7 28/32] gnu: Add rust-tree-sitter. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Nov 2022 07:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "Pierre Langlois" , <49946@debbugs.gnu.org> Received: via spool by 49946-submit@debbugs.gnu.org id=B49946.166936027213599 (code B ref 49946); Fri, 25 Nov 2022 07:12:01 +0000 Received: (at 49946) by debbugs.gnu.org; 25 Nov 2022 07:11:12 +0000 Received: from localhost ([127.0.0.1]:33269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oySrg-0003XH-0F for submit@debbugs.gnu.org; Fri, 25 Nov 2022 02:11:12 -0500 Received: from knopi.disroot.org ([178.21.23.139]:33692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oySrZ-0003X1-Cq for 49946@debbugs.gnu.org; Fri, 25 Nov 2022 02:11:10 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CF25F41513; Fri, 25 Nov 2022 08:11:04 +0100 (CET) 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 oT_dbCtLorxS; Fri, 25 Nov 2022 08:11:03 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669360263; bh=4dGHFywQR9gvkZPikno8+cVj0a4tS6OGTjZEnTrFVCA=; h=Date:To:Subject:From:References:In-Reply-To:From; b=IgGj+b5j5I6gOsVlOKTOcqdVr2GnvgbJpmNO4xTPQeOxQGSrbnkKIPQljrD1nwK1T sWOkBqMc08mwyc+Tih4E4G3luuMb9Ib6P+wAwHeLt/iqzTiTLIcexk72JIGMpP9ech vlqUE+4HVIpgGdHwexKvECsmfHMq+Y2uK3JO0yqVOwynP1AOr+0pDSjm+UTifgC/b3 d8TuVfVFM4FsRF8n3YpBfcllkx5tWINsonLPCrXHlIRLPScV9YS6fjyILQdhEaFPuK qMqpnyKiULAp1RtzlfHGMXYcSXpI2qQdC4jjL2RoxQ1R29paEyhkB+SJ8eSnwoTM+t 5yiKSX53zmtoA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 25 Nov 2022 07:11:02 +0000 Message-Id: References: <87mtfi63ut.fsf@gmx.com> <20221125012142.22579-1-pierre.langlois@gmx.com> <20221125012142.22579-29-pierre.langlois@gmx.com> In-Reply-To: <20221125012142.22579-29-pierre.langlois@gmx.com> 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: , Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669360336; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JVhwWvVLR4GcvuXsmHIYCmZzcy2uep+XqYVzpDw7Qmc=; b=m7hBN7RN4/9qQHvD/GhLLKZ7yXDYdeVUFEDARKW9jrj50WdNAXawnX94vVXP/Ht/Ex49jQ cYVxljHI0aMYlIherUEWopDHDYpa2Z/qn/6MXN+z590MAeLPyB0GcDU3OFp+NxccO25We/ KdrGH/4nYmVmna67V9PT6Frlt7YFvjf5fZbh88sw7pjdbGYUMyQpfBvWadviwZmvbdR2Ri sh/9IFDbezdWM5wSqeuAHAMoVuZw6l28XNAgmBiGsOjSPUkXYnUOTYGZ6GjExHiPN9Ve4M KrFzAbODiG8nSqWGK6/UK/2CWxbtTEdLvEOBN7hwFvxhLPusN7BMYqnZ1oc68g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669360336; a=rsa-sha256; cv=none; b=L2Fx9XLcEzoDqxas/1qQEcBNLz2fd8i/pU2b6F8SPqpLq6F2cK0fn5kjkahGXaWHTDlSZe sBioV9iAYYb7WfWZArwZApx/0ZBLEC8zMeoi1F5YAYOfGKC7eQ/bdTlPvHJKTSuem7QWf/ lLJDyUI1XZJ119ZFD36co9Ozqzzrpt2Ka9arcgZrO9zSyuJGjzkU/RKY8lTs7zdYf8Eu7U cG+LOyughZ5tFvEo2Y1+980rDK77rVOsOEH1EzEbmaqwkRMZ+2aCXFU0hLWHLO0Di2Iqxb vSV0FuL+NSDPHZ9vb5VzBUag1rdxo2Xkuuw1xA6XNRGty+kdzgIuqMP8dzA2uA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=IgGj+b5j; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.48 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=IgGj+b5j; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B512210D89 X-Spam-Score: -2.48 X-Migadu-Scanner: scn1.migadu.com X-TUID: DDBSDGJhI7US On Fri Nov 25, 2022 at 1:21 AM GMT, Pierre Langlois wrote: > * gnu/packages/tree-sitter.scm (rust-tree-sitter): New variable. > --- a/gnu/packages/tree-sitter.scm > +++ b/gnu/packages/tree-sitter.scm > @@ -158,6 +159,43 @@ (define-public tree-sitter-cli > + '(begin > + ;; Remove the runtime library code and dynamically lin= k to > + ;; it instead. > + (delete-file-recursively "src") > + (delete-file "binding_rust/build.rs") > + (with-output-to-file "binding_rust/build.rs" > + (lambda _ > + (format #t "fn main() {~@ > + println!(\"cargo:rustc-link-lib=3Dtree-sit= ter\");~@ > + }~%"))) > + #t)))) Maybe you should actually extract *this* snippet, as you also use it with tree-sitter-cli? > + (arguments > + `(#:cargo-inputs > + (("rust-cc" ,rust-cc-1) > + ("rust-lazy-static" ,rust-lazy-static-1) > + ("rust-regex" ,rust-regex-1)))) (list ...) please. -- (