From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 uOrKKJIv8GHoPwAAgWs5BA (envelope-from ) for ; Tue, 25 Jan 2022 18:12:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OLCmIJIv8GFblQAAG6o9tA (envelope-from ) for ; Tue, 25 Jan 2022 18:12:50 +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 DC4173FB54 for ; Tue, 25 Jan 2022 18:12:49 +0100 (CET) Received: from localhost ([::1]:52398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCPNA-00015z-1Q for larch@yhetil.org; Tue, 25 Jan 2022 12:12:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCNui-0005vg-Lm for guix-patches@gnu.org; Tue, 25 Jan 2022 10:39:20 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCNuQ-0002xD-2x for guix-patches@gnu.org; Tue, 25 Jan 2022 10:39:20 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCNuQ-0007Xk-1c for guix-patches@gnu.org; Tue, 25 Jan 2022 10:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53523] [PATCH] gnu: Add tree-sitter. Resent-From: Luis Henrique Gomes Higino Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Jan 2022 15:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53523 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53523@debbugs.gnu.org Cc: Luis Henrique Gomes Higino X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164312510928942 (code B ref -1); Tue, 25 Jan 2022 15:39:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jan 2022 15:38:29 +0000 Received: from localhost ([127.0.0.1]:49753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCNtq-0007Wg-8u for submit@debbugs.gnu.org; Tue, 25 Jan 2022 10:38:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:46056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCMtj-00035p-1W for submit@debbugs.gnu.org; Tue, 25 Jan 2022 09:34:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCMti-0001wR-24 for guix-patches@gnu.org; Tue, 25 Jan 2022 09:34:14 -0500 Received: from [2607:f8b0:4864:20::235] (port=39513 helo=mail-oi1-x235.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCMtg-0008Az-8H for guix-patches@gnu.org; Tue, 25 Jan 2022 09:34:13 -0500 Received: by mail-oi1-x235.google.com with SMTP id e81so31331273oia.6 for ; Tue, 25 Jan 2022 06:34:11 -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=5abjvh/5ngCO6Gup4NbsErFPgnhxe1RPnrmpB0emvjA=; b=Jim/vATnL51LzR5ri5zZvjwmB+MujqI0cNBYk89eSocFH3h6etMPlTQdP+FA9M3siS rE7AOoyggUEbUAvfcW/sQlfa4OMy18g0ojDepWhUERKu3hDYlnjFaQBG9pmBOUhcx/QP Z8UvPTLLFynO2MoW2ZAzGzJj9+1Hx8Six7VfSt41WCm72lgO6BkIrReGWKLiR2pPzNa4 Xrv2dsJ3KcC784CXJTtSl523p6jSYPTS5lVCA2iQCFloJXuZsV1BM5US6iBNRnsh2xmI d0xRFDSw2i4y/JkXQVpxOgR5yjvJzql/5HgmwEklxUIhiNFquJ4iEFWvGswa6Aygj++d nkvw== 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=5abjvh/5ngCO6Gup4NbsErFPgnhxe1RPnrmpB0emvjA=; b=B6zezfYun8B02lI/tv45I6HBtHn84HNkQOkzXRM+Yl2C7oyrjwfVAbDlKyKOCxA8qm gX0E1JI79uopnMaO/E8AEopuqZqsDZJwph5IqSzHwxDt4+L13Udsw+Uvvhr6ANwKN368 5FkgjzCMrBKRv0pkrdhIM2A9ZgpjQnLvwHn+IhOTBcwPU8WMENEbn33fzF8GDJAgB7nA sFYn8ziZkPFotoSBkn3y3jeyJM1cT9ZsD/VqLg23VKZBHxTTWxO5CSltnZEW73Xjapdg aRTIvZqAHF1pPVx1MVW3P7RJSCRBbhUPxunjXD7ta9xp0MiSmtQc4qrsXcu67x6sPCOp Wx3A== X-Gm-Message-State: AOAM531s2GQbslA2fVbbDjcKzBU2vx4ndmD5qEaQbLeuk+KJ831CiH3x 9TUuA4o7CHkl0pFcHkPEYx1RJo2o1kbnBjHc X-Google-Smtp-Source: ABdhPJwfJJz/jtYcll8xalp5U2Wbh1G0uwHjYOLEhUR2FpRyITFkOESW0We6m2uTbQTUnBpxouQS9g== X-Received: by 2002:a05:6808:141:: with SMTP id h1mr769734oie.157.1643121250647; Tue, 25 Jan 2022 06:34:10 -0800 (PST) Received: from localhost.localdomain ([186.213.83.253]) by smtp.gmail.com with ESMTPSA id k11sm2732146otb.68.2022.01.25.06.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 06:34:10 -0800 (PST) From: Luis Henrique Gomes Higino Date: Tue, 25 Jan 2022 11:33:51 -0300 Message-Id: <98a6180737981490316bca8c03c787289dbddcb6.1643120885.git.luishenriquegh2701@gmail.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::235 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=luishenriquegh2701@gmail.com; helo=mail-oi1-x235.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 25 Jan 2022 10:38:25 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 25 Jan 2022 11:58:15 -0500 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=1643130770; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5abjvh/5ngCO6Gup4NbsErFPgnhxe1RPnrmpB0emvjA=; b=EvfXPgrd3hsugZwm8z8ePepS0+NlMv58GiImZqOeytLZGUu6ZNTaDBxNFGzeHNFSbXFWQf UOKiMU54k9SA3W8mubsmwE9Jv3nPTyhDTArqCGPGe6hddkVn6crOHhewTnXiybqBTX2j7L vkUoLNoiLfWiLACt63WfpbQJcjE4/AgXoGhKMaPkoAmgN9L1ubjQhTPLopZ52rgO+NcPrm E5xZBPgaDZB7X6rhNDUti4M38t4J9YoxQd4zRuzBTm7P3wx4g9v57xQRxwCUBYEKPgbOT+ KIVuppJIwPsX5TmB43iucEaIOjIUP7/xOdoyZTFgNYyMNgw0+W5loNDUfvk3Qg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643130770; a=rsa-sha256; cv=none; b=dCngHxaanNglstUxmVMLUu0UkPpLCFtIzv/5DnzEpPFrNa+MpxmJhs9bgUDRcdK4apzuHW Bd5MnFpfFh2DfQVOCkKMPZIuADlacLehH9bL4EU5FFO+TU8/kAv+0Y/s9gx5qp7bIVZO0n mm8R6bVHYXpm++Ax8du+NAsHEUkjYK2+Y032PJeJwCtWZcMVuntV+n6bMR6yH4WuRITrlY UNMqKAReK0sA1MBJdNkY5rbaRR4yPv8W1NOaIIQrmP9ccgL5ZNq75oM8CVyaDgmw1YTWvu oIv9ZATkzXNb9s/9L5y7hFaWyw1bTwUZRsqvOSEhv81DEgqCTgmLVNX5lXas0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="Jim/vATn"; 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: -1.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="Jim/vATn"; 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: DC4173FB54 X-Spam-Score: -1.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: o5B3u9OK3P/a Hi guixers, this series of patches adds the new required dependency for neovim, tree-sitter, updates neovim to the newest upstream version and adds the package variant neovim-luajit, which switches the lua implementation used from Lua 5.1 to LuaJIT 2.1.0-beta3. * 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