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 ms0.migadu.com with LMTPS id ELbHCHCYBWKNSgEAgWs5BA (envelope-from ) for ; Thu, 10 Feb 2022 23:57:52 +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 CIyXAXCYBWKazAAAG6o9tA (envelope-from ) for ; Thu, 10 Feb 2022 23:57:52 +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 BD50F33BE0 for ; Thu, 10 Feb 2022 23:57:51 +0100 (CET) Received: from localhost ([::1]:41410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIINq-0001d7-TT for larch@yhetil.org; Thu, 10 Feb 2022 17:57:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIIMB-0007lq-LW for guix-patches@gnu.org; Thu, 10 Feb 2022 17:56:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35425) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIIMA-0006K7-UJ for guix-patches@gnu.org; Thu, 10 Feb 2022 17:56:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIIMA-0000y3-Tb for guix-patches@gnu.org; Thu, 10 Feb 2022 17:56:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [WIP PATCH v3 13/26] gnu: Add tree-sitter-javascript. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Feb 2022 22:56:06 +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.16445337533592 (code B ref 49946); Thu, 10 Feb 2022 22:56:06 +0000 Received: (at 49946) by debbugs.gnu.org; 10 Feb 2022 22:55:53 +0000 Received: from localhost ([127.0.0.1]:57534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIILw-0000vm-Vx for submit@debbugs.gnu.org; Thu, 10 Feb 2022 17:55:53 -0500 Received: from mout.gmx.net ([212.227.17.20]:46481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIILk-0000s8-IN for 49946@debbugs.gnu.org; Thu, 10 Feb 2022 17:55:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644533734; bh=dMQVsYvC+RYaIZIxSO5oHy+RkrkiOIDCqbUzJPXIchM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=iJL5BhCNEeiRFK1mwXKDOcHsO72YD2UMj6tDQdNJYFCHJ2XLc3fHxcjZyJi9SVbq/ kwFGWptQwE43k9SuB0v3ORw6l6cSTCfqIs4lxUeKRUs+/7lVA7fz/AS6impRBtDOke JkkhQmlnBE+JsHveM0QV+XXhuNK7FRT7gtvNa7KE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([82.69.64.142]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MuUnK-1o9ZOG2mTC-00raAn; Thu, 10 Feb 2022 23:55:34 +0100 From: Pierre Langlois Date: Thu, 10 Feb 2022 22:55:14 +0000 Message-Id: <20220210225527.25189-13-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220210225527.25189-1-pierre.langlois@gmx.com> References: <87leyinxly.fsf@gmx.com> <20220210225527.25189-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:bRpd+kC0YixT8UaeVNYxyAkDj1J4+i9tFyIj6XTTXK8cKlh0zVa /PAE32fJpnSVBXJBoYWiq1zcnse9w3bYXP/W2vyFiR/hZ6d3Y6eaNZfm+BjQMyISqK/snSz 4j8q/gI3CTEMQrc8POQLHrT48wlPppzRVQk2sLO9fJsTc0XThTrdRQykYI17fu42wCK/ncS t3aBIQzLiSu4DLLSycZyw== X-UI-Out-Filterresults: notjunk:1;V03:K0:SSpGYJm2vu0=:aS/GqI79PeHWVy4jmD2paA zm5YGWenlorDnPBpVbgzDFhfMsULZQ3QUvJZlnBkub0UY3VdMnCKVVAWOaIrrHr3H9VXr5L85 ucvqXEh1bSaJ6O4r/UPajdgeztLT/O3e2miQ9HmtSoyJETAOdGBuEw40IEjpABCuDf5F17vkq iCEMQihc00cE5R5V/4sSIxvolqSrXnSp52hHfTFjS+lGTkxdUlQO3scH+G7mboW55P4AZV537 QoxTkWgYyxZzS7chXpqxNjd5K+aXeBc127LxTfFsPHFZicdrPmldffT/Oj7UQlePN1qPqZXnI Mv86NVacIJZSzEzbtPx8WcSR+J/8bwXvZ/TX8Zw4jKTMcOGgIxUQqAehQmJ0anTyUb6xAzQNX CNvABu7xfc28J6QAorZfIhZq/ikntCQsWadWnwIjNgrjAZI/QK+mrjBsdjwLsmq0/PzsPKlKj fg7O5OiTAzsIytnSXJ7L3103/6kePMTJawQsuV+bH/MOeDcbL/2DAL68cXNY2Fgc/2Hx5EIup r3R6+ylcUSYAIGC1hnUkr79K4lkP9xgF5n9Z8W4xgfQyjdPvFacwjP5cxtULSpCIQkaSt/3dQ fnWnPFI4ChFEx1XH5tyfAU8nagWJN2AyOAEuP0YPKgq1GTUA8/AMygrIBemPwRdjYcD8cCq8b uAUz20wArFI1g2/W2Gn6wRkwaO4+QHX9u62I1bT1pyRVEOhM0msa0zgr7DFn0MYJoZk14K87b /wSTLzf7xsDBkV2XnNuE2BTH0v4VK4VTkb6K8Id8IJGAn/waktG3mYzZ9IdLDk7yTXaY76m/Y tTWquSR6TjrFeSUuWffz5XpuXfF8I2+ZiqqNb6TwSV3sKnxAi3wfzAl0oT67c717lRnax6uTK MM7GsG3utPf+c0P78Tb3F+3T4n2GLD0wYYZz5E14QciFRh8WdlaoMJaKCBlcqYVSMxfMzNFlj s9zXw7KTeWi6WtCb72Eui5bKE3TL67vUMwi+HrQRJuna6xMOsJmALxMvAZvK5gBgNV4641uPR B5MQzlTGOVxQWndGQkiWmuVfWZiXAapmbdpJAO/wtxVqaTNwwyfVkd+t0h2f87eo4Mf/7WECx 63C9vhim76/98k= 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=1644533871; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=71+ACqHbAfigH2A8CzvK5Qg3bljGsyVVQRGBWpQK9mU=; b=orK8XStO5d7K33yBW1SsP3ynDXThGDgCHDL/EAUhagK3y272DmOtg4RjDGqn13Xd+mcAgy 1AKKLqav2k4XnsE/gOntmZfvZOBKimdHy0pzDGea0ModWgIsq2u+lPuPLuGedDo+68/vcP tClC7mR5F9/uzUbroa9SqwUWnrmQNG8+R0eb0NOmE4PB2BqsB6bU/luPs4oyBE1Qou4La/ +gd75LGISiNpFNw/w4AmroPk6mleljuouPsI3PqN2QFtZOyfAnyAUaphaHRgzwOZPs+uVt 4N0yMiijvFK7NYH4xGTT4MOjQxIf8l4bs4xV05d4vWZw7dLGy7E+eqcefRxZ/w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644533871; a=rsa-sha256; cv=none; b=F+bijpu1URrlZjB6YXoch9qBBkVmtWi7LnztFaGFC5TeOhXja/maBx8cjvXo4/70CgVGbA z5hlqflIvkqZ1iTlObtjre8VxCkBHGO6GJjKr32pMZijWLWSvcst6iaakJHEvn2pIKJi9k Sdlj28JCTepdcncKQ5FoKfig2cA7+DrCCPcu7gDP/KOChjnjz7fDIirqQanh/H1+2o0tFW qeSs4ZrmuIch7GcxQPO4H8TOMz2eSY1eeNXA2R52hiYOIlfpcR5CfbrVQV4rKxfY6kJYCj pkc/T+7GEfBCzcMmV3SgqA9e3BxQiGD9KjHGDYPnGEOpsz8ouxJ68CW+9ckg0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=iJL5BhCN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.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.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=iJL5BhCN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.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: BD50F33BE0 X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZYUOUShSudKA * gnu/packages/tree-sitter.scm (tree-sitter-javascript): New variable. =2D-- gnu/packages/tree-sitter.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index 760a7871df..b728e6511b 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -363,3 +363,27 @@ (define-public tree-sitter-java (description "This package provides a Java grammar for the Tree-sitter library."= ) (license license:expat))) + +(define-public tree-sitter-javascript + (package (inherit tree-sitter-c) + (name "tree-sitter-javascript") + (version "0.20.0") + (source (tree-sitter-origin + name + version + "175yrk382n2di0c2xn4gpv8y4n83x1lg4hqn04vabf0yqynlkq67")) + (arguments + (substitute-keyword-arguments (package-arguments tree-sitter-c) + ((#:phases phases) + `(modify-phases ,phases + ;; The parse-example script tries to clone git repositories. + (add-after 'unpack 'remove-parse-example + (lambda _ + (substitute* "package.json" + ((" && script\\/parse-examples") "")))))))) + (home-page "https://github.com/tree-sitter/tree-sitter-javascript") + (synopsis "Tree-sitter Javascript grammar") + (description + "This package provides a Javascript grammar for the Tree-sitter +library.") + (license license:expat))) =2D- 2.34.0