From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id vYnJHD5nK2HacgAAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 12:53:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gAj2Fz5nK2GhVQAA1q6Kng (envelope-from ) for ; Sun, 29 Aug 2021 10:53:50 +0000 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 EE71CFAF0 for ; Sun, 29 Aug 2021 12:53:49 +0200 (CEST) Received: from localhost ([::1]:43676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKIRh-0001DO-0V for larch@yhetil.org; Sun, 29 Aug 2021 06:53:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKILI-00067C-Ec for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:15 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44069) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKILH-0001hd-WE for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKILH-0000Hr-UV for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v2 19/33] gnu: Add tree-sitter-javascript. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Aug 2021 10:47:11 +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.1630234025965 (code B ref 49946); Sun, 29 Aug 2021 10:47:11 +0000 Received: (at 49946) by debbugs.gnu.org; 29 Aug 2021 10:47:05 +0000 Received: from localhost ([127.0.0.1]:55590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKILA-0000FI-LK for submit@debbugs.gnu.org; Sun, 29 Aug 2021 06:47:05 -0400 Received: from mout.gmx.net ([212.227.17.22]:48083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIKm-0000AS-4q for 49946@debbugs.gnu.org; Sun, 29 Aug 2021 06:46:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1630233994; bh=xnJd3Sl3lK8AQ9+7S4G56gApR1414TV8ev9BXbCWcTI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=VkuxR/GCDnrTqhPeDg/CL3xhdiJ3DFkwm1A7MMzJUE9Sii3ww6g6lY92sSsIgtTOg +GuNB61YmCXPrANXHFiZKfgE1Lc2bqFUH0qoMu70lecxGR9VWnhT9g93ecIL94SYW0 nmwSs+JCmcBzGHGwwW/UacuY7j39GsxygFjH8sig= 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 1MXp9Y-1mWJS21K4y-00YD5u; Sun, 29 Aug 2021 12:46:34 +0200 From: Pierre Langlois Date: Sun, 29 Aug 2021 11:45:54 +0100 Message-Id: <20210829104608.3103-19-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210829104608.3103-1-pierre.langlois@gmx.com> References: <87czpwzg9e.fsf@gmx.com> <20210829104608.3103-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:gGmG8PGqVkWHD6NWyXqW4GlUCTI0cczjP43hW50W1rX/ml4mNml nuuJSvsq8XmrbGGJcJb2gYyEOtq3oAwoooAQxvpgtXu8HwGzgRxpVcmingbOwS1MnPfrNtL U3Yjpa3QqirSP0Un86ewe/RxdRnFhHeMjyYMLDBRDilD5GIZ3WM0cT6QRPjKQ8sXAAzrOHl ChjV6d8jZstABNjkwV8Vg== X-UI-Out-Filterresults: notjunk:1;V03:K0:PO+pKvB+arA=:h6iQ4G9I69UjRsq/VkiVGB bVmNx12JvLTcCFfNQW/MqO3+5qkRodjvto+oJWWXWdIZS/NQ1pw3mfD5IK/LkualQxk9JsHZv IOYiAEBrgFQ8SmgrpeTIJ9w+CZsHtiJSBczKGC1SjV1YIu0uSrlgSiv82eUu4SR5moHotXAGY zIV1F4Xp9V098feM9Tswv0lf/Nat5z/0P+EpZzfyaZrhSVuqr7fjxDiFAx8tWwDED8CD8v3/q RAFgJkCimV+1GvNCNtQtAMf5KidpM3xVBlUOjPpUckgKQ6T92vKXlBD3WsjdYost8oJ2hLKTq WxnRSNVZ9/FrIE+6A3BoanFi1nWywd0CclGgOEl2yIPCBFAgkuKbffg2DkmQn10NXfNWclovt p3yiNN8dXD2srcjBHKspn3/fzYlNZYaaB3uP6y9J4B3gkPmlop9NxfVRe6Yp0FKiWXikwP+fu 3q52foQTPlLniIvXqC78dudcBZ8Ygbxe5fXTmBEyKr69PAtJS3EXI9AKzOhhmPHaTV2AGvA0w 842mgzqaPIqLYiW+ImMwYtee6U1YYE8yjYe0bYDFYmW3wpABQKAxp/1gseyUaGuvHlpl8f9Sp g3tldPtcw/80fVIDI5b7HhDgOTSb2MVtTed0ckS6gCJgBkLVhAky96vIufnZ9S7uTbUhi21vM s3J7NtkrzBMh/pYAYrQyVQALDQGJZFpkzughQeaW2vN+6nCISPXv8Gc4F0mMG3AD4hfAjNGrA tHDmPuqm56EhhoULUOMfy75mOaBK2WZ4MdSCCOQg+GfDtDDGya1oEDd8BnF1htK6VsWzJyTxx Qx0FweM083rRovhVHQ5yfkpjrDKYIxujHtdKX5KspF48F2IxijUnYUkSGHv7/cM+JvzScg5+U PXxVbUC68VWoxqhT77Df5reiX+FTlTgihCoaPRJdZiXOpjjoWfSG9zFog9SGi94nQRESOn+y+ eddYzVHILvIzeUWBKEUTfbOtduj3+dXsMUQh0zVtAhlxHvZYn8/seMCWZ2kKEvfjqfA+l6oXN FsWVoKbcBrOHaXbLUckAy0u4mZmaYvzhkzHLtoq2VJm/1acACJscepcVdb59Ps2E4Tp3Tjhf+ udl/XYvtVatGYJVOsNsttsxVKSBJGmvpz6T15f6pM85dJfRpoz+cI6o8Q== 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630234430; 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=v7uMyYjX/EohorIDO7wL+j4Ng0geMXVj1S0ebv3KTao=; b=dTWG44YtzO2gXPmv2kPZBQXZrQFZBpLKzN+WvPJFsmkV/X41sXjVm8XELLLmSRBKQVuia2 aRsN3aeICxrZQLN/QEeBilP0Orb46IyvWyZweVkbI9tcqQy6Orh8ryLsFLdoMcJUv+qpZR pwDjewD9ED1f5AdwrjgSTILHmnq7Phttehf8lAmr86mHiNzU8ogkSPqYG77M6fbY3QxVa1 Juh+MEixMSIlFLykmjOqS/2YVxn46rrWSFnIUoZYV0eH6fcexf4gicw2oZce/2Rb4VFpro 3Brc586tOci/fQOoKmf+IqyWDQIOXTwrOCp3XrlVGbtyPZt30RZjEIWJZk9IQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630234430; a=rsa-sha256; cv=none; b=BCARCphFA2zyUPZePuLrwlS7mOvcDApD4zRwWp2DmDHM+oo+L3E4MDqFHeeSk9tMNcljBb KKnxLnaG4FiZPoMGFakWHrrzYtZQ7yS62bhXLoAbw8hW8cGC/6t1G4LUio9PyFDD/rqshV +Fh2cuOY917+o8NP5ukp4HyUe/S13MJz2ajmzf5OedY2zSs/coWtf6pFyymgl3yPRN3NR0 ot5hltJan7iivyk2bWXle0+++EB/Z+V7ahOi+rZ/4tiw4son2/aQTE+w84gdlQiIYN+QNt +77I2Nagt3ceyx+RGKkGseEH6DhywoSmTfXyA09XVqmgySVIZkPINF3uAmiLyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b="VkuxR/GC"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b="VkuxR/GC"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: EE71CFAF0 X-Spam-Score: 2.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: PDAFD2blBn58 * gnu/packages/tree-sitter.scm (tree-sitter-javascript): New variable. =2D-- gnu/packages/tree-sitter.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index 174f0923f8..2be6b15cb0 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -354,3 +354,33 @@ This package includes the @command{tree-sitter} comma= nd-line tool.") (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.19.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter-javascript= ") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "063va0s727yzhy1cz04fipzwwbq4af6fhgka6g970hk9yf7ggmnj")))) + (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.33.0