From patchwork Tue Jan 25 14:33:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luis Higino X-Patchwork-Id: 36801 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 D1AF727BBEA; Tue, 25 Jan 2022 17:12:48 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 59BBA27BBE9 for ; Tue, 25 Jan 2022 17:12:48 +0000 (GMT) Received: from localhost ([::1]:52398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCPN9-00015z-Cy for patchwork@mira.cbaines.net; Tue, 25 Jan 2022 12:12:47 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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)))