From patchwork Sun Aug 29 10:34:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Langlois X-Patchwork-Id: 288 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 25AE727BBE3; Sun, 29 Aug 2021 11:40:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B2FC727BBE1 for ; Sun, 29 Aug 2021 11:40:39 +0100 (BST) Received: from localhost ([::1]:38208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKIEw-00059B-Mo for patchwork@mira.cbaines.net; Sun, 29 Aug 2021 06:40:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKIEO-000593-F6 for guix-patches@gnu.org; Sun, 29 Aug 2021 06:40:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKIEN-000456-2i for guix-patches@gnu.org; Sun, 29 Aug 2021 06:40:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKIEM-0008S6-RX for guix-patches@gnu.org; Sun, 29 Aug 2021 06:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v2 00/33] gnu: Add tree-sitter. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Aug 2021 10:40:02 +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: 49946@debbugs.gnu.org Cc: Pierre Langlois Received: via spool by 49946-submit@debbugs.gnu.org id=B49946.163023360132478 (code B ref 49946); Sun, 29 Aug 2021 10:40:02 +0000 Received: (at 49946) by debbugs.gnu.org; 29 Aug 2021 10:40:01 +0000 Received: from localhost ([127.0.0.1]:55528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIEG-0008Ri-RG for submit@debbugs.gnu.org; Sun, 29 Aug 2021 06:40:00 -0400 Received: from mout.gmx.net ([212.227.17.21]:34395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIEB-0008RS-Mz for 49946@debbugs.gnu.org; Sun, 29 Aug 2021 06:39:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1630233585; bh=d6sM9CA+ixlfv4mOcGvkhe3BMXjgVnmxZu6iQci90k8=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=SPI43OvL5OZkA1ZHAxyTD5WgA+JYPTxat06xicybad2m9W7qFBAAzts6mFdDAo0hn MWbbiPW/HbqbGph1xbr9QnL5J0697WLjW8Xx9ilsabTTZJjharYBDeRgB2aJ4TRmR0 KDi1e1MP+kr+GD401zlTqFBPrX2ApWz91EzPJvOk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MJmKX-1mZM6a2byz-00K6rN; Sun, 29 Aug 2021 12:39:45 +0200 References: <87h7fztt60.fsf@gmx.com> <20210808233354.6745-1-pierre.langlois@gmx.com> <20210808233354.6745-7-pierre.langlois@gmx.com> User-agent: mu4e 1.6.3; emacs 27.2 From: Pierre Langlois Date: Sun, 29 Aug 2021 11:34:24 +0100 In-reply-to: <20210808233354.6745-7-pierre.langlois@gmx.com> Message-ID: <87czpwzg9e.fsf@gmx.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:f1UKKTCBowMrrwNN/DKSXe9tbKXbyfSHwMIC8BlThuk6I12atNn 7YhHbUodt4eF0YUmzaWopfNgftvacWoPgRdklEoMrnKtZ6fZcFcQp5Ec/qWOkvWXSgVxJ/4 m7UAq01MbmKsoWr+yf/21STeytFmak2FW3lCqKTDhtU1OS6/+4kknLFGJFb0HQFY7FoBxw8 HpoRjhAfKyxOVQrUTX7iw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Niv5FTA9VGw=:5t42oNu5KNzjKun/lbz1QQ z/wc7cgM+XX99CrgcrBZtTssvQtgw+pBwmLGuko3ZTGPz3r77rQ8RyNKJy2wKMFqA0/61Us+b uPf70p9bsAiYqI6EoBfuPSEp+x/Hor6lf9pj822398rYXqZJwZuCXgbu8AA+sbEzSNseWuPNt TT58ZGEo9jP7dDeKn8s/DlxrZJT3H6rcw2PXkRpLB2ipZgWfh3Ss8Ho/KzDJjcXmrbJjQytIw 33shmJlXvFkGV6egdObcoepjSSpK74Ea81jsHBR28nTnqPHds+AyROz3GVXSHpJGe/wYNfLOf lGadqWmhnSzBVGmniKhOGEjvkZkePEOqsZu8L0t/WdYBJd7KyaPKUPyn598j1kB8D96Ont8qH Zq6wt6Qlnl315syWfGiARXuOdM9EKe3M3uTu1ACkBdoUCK/37mlkYTS7o2bmSOFGDoSavk5Cu Lp0pGtbDabhATJCsZoTNjrGzJ+gi83e78qXog8xb5foIgnDHZhaA+tBcE9qqCz9qAn8WEKO0d 0+1XbPmsaTUTSwQ4ipmH1gCGeE8CUTqZD8Zi5d1W9IcWEKqiOrM1/EUAhPbCwFCn/aIu2K8Jx 3OBQ6NQRE1Aqr7Dkx912ruwpJJtp6HxCAIp9I5ltqWOhp7bTAl/yCqoV2neefM52Dc3JoT6Wr 2trt9bZfquy6LiqgLgJnGfaeACk7duUTjuE+iKALEbmatGy4hrVMIWBcjzMokhRMSlPiGMys8 0VUFJYSUZ2Y8M+78Hq2bOhHsPQjCWMJNzvuWmyS9xlAleXdKRZ0W6RKtU0vwn+HikrlcD+WiD J9EO7PvbbeEEe1gtl47szN4N+vE1gtebH1CY4FmegSSNqI5m5LipneRKFM70EESx9X3B/I4bA 7VQvEBVjeSeLGqjrZ01ikX75+Eg+gRY8ll0q2+TNqCctdDaVjVGNwUhkxvaMousDTFgOfxb5U /EenQLRhSvHqCNcLVIpzSUL0jI7+Z8n445Oi3tb8woBQuI5F6ytqb2Qw9LrPbWppDzYFTxnip LHHL4jIyKn7QqAjI5VBt1SMCfhMHMReN4cdmhshg08b0ID2Gqf0vqQyZguUIUDPzSkKeHFrtY KJZlcxFR5Hn8x+fIvfFn4ZsLncDxs6OIpvved6eR1mah+/S0W4UGE5fLg== 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" X-getmail-retrieved-from-mailbox: Patches Hi Guix! Here's a V2 of the tree-sitter patch series. Changes: - Split tree-sitter into tree-sitter enacs tree-sitter-cli. This way applications can link against the tree-sitter runtime without depending on rust. Emacs may do that in the future :-). - Fix the node build system changes to work with cross-compilation in the future. - Use cc-for-target in tree-sitter-c. - Add tree-sitter-bash, figured out how to package that one. Thanks, Pierre Pierre Langlois (33): gnu: rust-chunked-transfer: Update to 1.4.0. gnu: Add rust-fdlimit. gnu: Add rust-html-escape. gnu: Add rust-smallbitvec. gnu: rust-tiny-http: Update to 0.8. gnu: rust-spin: Update to 0.7. gnu: Add tree-sitter. gnu: Add tree-sitter-cli. gnu: node: Patch /usr/bin/env in node-gyp. guix: node-build-system: Support compiling addons with node-gyp. gnu: Add node-nan. gnu: Add tree-sitter-c. gnu: Add tree-sitter-cpp. gnu: Add tree-sitter-bash. gnu: Add tree-sitter-css. gnu: Add tree-sitter-go. gnu: Add tree-sitter-html. gnu: Add tree-sitter-java. gnu: Add tree-sitter-javascript. gnu: Add tree-sitter-json. gnu: Add tree-sitter-julia. gnu: Add tree-sitter-php. gnu: Add tree-sitter-python. gnu: Add tree-sitter-rust. gnu: Add tree-sitter-typescript. gnu: Add rust-bindgen@0.56. gnu: Add rust-tree-sitter. gnu: rust-emacs-module: Update to 0.16. gnu: rust-emacs-macros: Update to 0.17. gnu: rust-emacs: Update to 0.17. gnu: Add emacs-tree-sitter-core. gnu: Add emacs-tree-sitter. gnu: Add emacs-tree-sitter-langs. gnu/local.mk | 1 + gnu/packages/crates-io.scm | 290 +++++++++-- gnu/packages/node-xyz.scm | 30 ++ gnu/packages/node.scm | 31 +- gnu/packages/tree-sitter.scm | 791 +++++++++++++++++++++++++++++++ guix/build-system/node.scm | 16 + guix/build/node-build-system.scm | 15 + 7 files changed, 1141 insertions(+), 33 deletions(-) create mode 100644 gnu/packages/tree-sitter.scm