From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0Cw4B9hT+WH/ZwAAgWs5BA (envelope-from ) for ; Tue, 01 Feb 2022 16:38:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EKl5BNhT+WFfqgAA9RJhRA (envelope-from ) for ; Tue, 01 Feb 2022 16:38:00 +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 67AF239DE8 for ; Tue, 1 Feb 2022 16:37:59 +0100 (CET) Received: from localhost ([::1]:32790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEvEE-0001lC-Dw for larch@yhetil.org; Tue, 01 Feb 2022 10:37:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEssa-000566-Q2 for guix-patches@gnu.org; Tue, 01 Feb 2022 08:07:30 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEssC-0005n8-5y for guix-patches@gnu.org; Tue, 01 Feb 2022 08:07:26 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEssA-000211-1d for guix-patches@gnu.org; Tue, 01 Feb 2022 08:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53523] [PATCH v2 1/2] gnu: Add tree-sitter. References: <98a6180737981490316bca8c03c787289dbddcb6.1643120885.git.luishenriquegh2701@gmail.com> In-Reply-To: <98a6180737981490316bca8c03c787289dbddcb6.1643120885.git.luishenriquegh2701@gmail.com> Resent-From: Luis Henrique Gomes Higino Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Feb 2022 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53523 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53523@debbugs.gnu.org Cc: Luis Henrique Gomes Higino Received: via spool by 53523-submit@debbugs.gnu.org id=B53523.16437207847680 (code B ref 53523); Tue, 01 Feb 2022 13:07:01 +0000 Received: (at 53523) by debbugs.gnu.org; 1 Feb 2022 13:06:24 +0000 Received: from localhost ([127.0.0.1]:42026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEsrX-0001zn-Lt for submit@debbugs.gnu.org; Tue, 01 Feb 2022 08:06:23 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:34664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEsrV-0001zW-3U for 53523@debbugs.gnu.org; Tue, 01 Feb 2022 08:06:21 -0500 Received: by mail-oi1-f169.google.com with SMTP id b186so26928199oif.1 for <53523@debbugs.gnu.org>; Tue, 01 Feb 2022 05:06:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=H0Y3GlNoijtv+r6mLcEEJwON8nXp0DsmgX3Nckjt8+8=; b=EP/Q+D+JLPOxf1LYPCqqr/9pdb1SUdbZqnqXbPfAliACfIWU5EpCx0UhjOIjW6pdsj +et0XFG153MHzGegEsRKZQdx9WKDWokgDMQmRlrwvoRz1B9dB5fkn1h6o4Jghn2Z812Q xC6DYHR+ggogjbHGCmvjVyoV5KJ29ox7a2+3LLthsLjp9BdLD5UzQ+T0j/IDCjTqW5y4 ntpGlK8P2QQFFYpzsCVsNByuKRiMl95XCX19A1jO5eMfgCb9COnZRLzDwLw9QLYQRnT6 YyRh1AayeLP65n0tnVhG84c37cjN+DXMXTlEIvJIvCitazzI+fYWTj35vznUMtTTOSJv x8dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=H0Y3GlNoijtv+r6mLcEEJwON8nXp0DsmgX3Nckjt8+8=; b=WY0kkYu5zYHSEN7lFJ/LXIaxWWXF2F18lA6BNVXm3r0yWYxF/YwBZehsEYCp99s5os tNt+CRSfN/5jVk5P8zF7aDF6wkbtvJGGfjWGYwrTOe7u97hCpLg+xZ4ulbnirK7+0aH2 DeWk15ycfcMWepGFCkIa/6PqAXv011UxHZDyazMMMdO56GETOgRkcWfq5HCHt692XApH 6dwCFlAe/jHSWMVFhxd5kGTgrHSN5eiySdlIq3qHNO2ZNgLNm9iO/SLBGPTQ3h8szkVG N0Wol8jDy3KQRhB+Op4eWVy+csJ7j14P7l+wRkMxdDy3M773brrvlBNO0VDpdIOyXTNu LJjw== X-Gm-Message-State: AOAM532weIefsJGAnzvbrSPjxUZtKqJbCn8MWBsEYaQ/2/Jzg4k+1vd7 B6hkWcSJULFETWn4sJG+cmzjlNi+JsYsXA== X-Google-Smtp-Source: ABdhPJwCXXFv2keGdw6NpzhaLLLmtvOWpYXmOZ6O6i/sENWHqPU4NRYiGZJ5r3nUU6tZh2CAYZTOhg== X-Received: by 2002:a05:6808:230f:: with SMTP id bn15mr1065909oib.91.1643720775013; Tue, 01 Feb 2022 05:06:15 -0800 (PST) Received: from localhost.localdomain ([2804:7f2:2785:15d6:4ff3:5510:693f:e90a]) by smtp.gmail.com with ESMTPSA id s187sm13405811oib.36.2022.02.01.05.06.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Feb 2022 05:06:14 -0800 (PST) From: Luis Henrique Gomes Higino Date: Tue, 1 Feb 2022 10:04:23 -0300 Message-Id: X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1643729879; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=H0Y3GlNoijtv+r6mLcEEJwON8nXp0DsmgX3Nckjt8+8=; b=e/MrNM0mH+iRYuizyifrx1u6Xvjc4+W6XTIjW8wGnjj3RNUZRy+upb2uUVLHewJFNYiskm ayeFBoVjGzxXj8ccP7xkiPddmlqiwzVzOfehW8BcmpfpxRtu/y1u/NWYImmqoajihbVlOg RGRBexGgS0wvgSAB/yBtEjgQe1L2eY+99Zv/yTOrEM/q7s9mAolj/HI448hKwQ7HtdKmZo /IHnjcUt/eU3knNDsbpOCr47O9oGvh3KG8ftcJRym57ZdPlJGT4aTxXb0LBuGMmhJ6PVLD oREe+dNZdJktg1i1S64/f7ufPDfiuKmSnnUGtQOzsdFI+kF2Wa9Pcrb0+VI5tw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643729879; a=rsa-sha256; cv=none; b=U4kAQOo0dpCB4bqThFvsSg0VvnRM/NlrbkYZCcQmQyiyoqT07kdVeRspYOPCmqmwfmn3ED efCytVNI8Hauj7Fk3lc9oC9d/HTkXLyA2s+J03iltQyBV2BFTezFMmbDhdQPXfaTcUMxzj 2/SL9kFybK7ImLpsd2Eg/iSZUOWSsal7Aw8ph2RMQEWPwM4FPjyPovmI8s/1CCH4+A3jhA 8jAxX1pjd5y5YZL+x30vbU8s1ewEIvYjVdENAmwroZVVBDD9YX29B5yW1DaFF7lgb6OpB2 6Xx23AUPk/5W6qZzjhShKBaCnNVtykcuzlVojTWXAhfIQvftSw8Xb11VXArzfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="EP/Q+D+J"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="EP/Q+D+J"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 67AF239DE8 X-Spam-Score: -2.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: /JsoveO9KUhO Hi guixers, this adds tree-sitter, just as the previous patch series, but now there is no neovim-luajit and neovim uses LuaJIT on supported platforms. -- Regards, Luis H. Higino * gnu/packages/text-editors.scm (tree-sitter): New variable. --- gnu/packages/text-editors.scm | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 2c5f5de719..9273a8f10b 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2021 Leo Famulari ;;; Copyright © 2021 Pierre Langlois ;;; Copyright © 2021 Calum Irwin +;;; Copyright © 2022 Luis Henrique Gomes Higino ;;; ;;; This file is part of GNU Guix. ;;; @@ -1165,3 +1166,47 @@ (define-public virtaal provided by the Translate Toolkit, including XLIFF and PO.") (home-page "https://virtaal.translatehouse.org/") (license license:gpl2+))) + +(define-public tree-sitter + (package + (name "tree-sitter") + (version "0.20.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yldgdbf3l5l4ki52abdf81nwkcbvg219gwr3ydcjwfsg7hf7zhz")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-hardcoded-paths + (lambda _ + (substitute* "Makefile" + (("/usr/local") (assoc-ref %outputs "out")))))) + #:tests? #f + #:make-flags + (list (string-append "prefix=" + (assoc-ref %outputs "out")) + (string-append "CC=" + ,(cc-for-target))))) + (home-page "https://tree-sitter.github.io/tree-sitter/") + (synopsis "Incremental parsing system for programming tools") + (description + "Tree-sitter is a parser generator tool and an incremental parsing +library. It can build a concrete syntax tree for a source file and efficiently +update the syntax tree as the source file is edited. Tree-sitter aims to be: + +@itemize +@item General enough to parse any programming language +@item Fast enough to parse on every keystroke in a text editor +@item Robust enough to provide useful results even in the presence of syntax errors +@item Dependency-free so that the runtime library (which is written in pure C) +can be embedded in any application +@end itemize +") + (license license:expat))) -- 2.34.0