From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iH3PIGVqEGGCJAEAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 01:36:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iO9XHGVqEGFhFAAAB5/wlQ (envelope-from ) for ; Sun, 08 Aug 2021 23:36:05 +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 2C896D1DC for ; Mon, 9 Aug 2021 01:36:05 +0200 (CEST) Received: from localhost ([::1]:43146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCsKq-0000n2-8C for larch@yhetil.org; Sun, 08 Aug 2021 19:36:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCsJx-0007zC-J3 for guix-patches@gnu.org; Sun, 08 Aug 2021 19:35:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCsJx-00067J-Bp for guix-patches@gnu.org; Sun, 08 Aug 2021 19:35:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCsJx-0000vv-9R for guix-patches@gnu.org; Sun, 08 Aug 2021 19:35:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH 17/31] gnu: Add tree-sitter-javascript. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Aug 2021 23:35:09 +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.16284656773413 (code B ref 49946); Sun, 08 Aug 2021 23:35:09 +0000 Received: (at 49946) by debbugs.gnu.org; 8 Aug 2021 23:34:37 +0000 Received: from localhost ([127.0.0.1]:54997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCsJR-0000ss-3w for submit@debbugs.gnu.org; Sun, 08 Aug 2021 19:34:37 -0400 Received: from mout.gmx.net ([212.227.17.21]:42067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCsJI-0000pC-6J for 49946@debbugs.gnu.org; Sun, 08 Aug 2021 19:34:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628465662; bh=9ewappmlgti0sg1K9XgMKD0NXH7D6akk0AZA0trlDp0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=EOs8GFQ44AtMYKGBT9teJVqXpF4Cr4lkqAiEzpOIOt0pYSUmCTKmjh5qIF2bWoU3K btGl5QZiQWKjDO8PwNxpuJZ50xOCK3TNDWocsC45QjEBNY1rI0c+hPVph03mXLVbry C49OlfpxHf05lejvZ1KLBs9c3SjnIBrZ6EaNPBuo= 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 1McH9Y-1mpVNS1Rfw-00cesj; Mon, 09 Aug 2021 01:34:22 +0200 From: Pierre Langlois Date: Mon, 9 Aug 2021 00:33:40 +0100 Message-Id: <20210808233354.6745-17-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210808233354.6745-1-pierre.langlois@gmx.com> References: <87h7fztt60.fsf@gmx.com> <20210808233354.6745-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Bi8kDg+xCxdO7Al3NtjuRdm0HeyZan8VV+pMOFBMu6yWcsO9tgr mchXun6lnLQJTa/sOvXpRsWfK7i+jy8qL+eGMoGGHvpwobiKypBsvmZzvZ8A6sjVrKuNGkt QVG1kq5/T43ZhBhq845ZgWjWgMmco7aruhyvgwk/Sfws/Tk7swv22Sz76rWCKLoIN8Y9rFg Lh7DIGi5Gn2iaJREU1nJA== X-UI-Out-Filterresults: notjunk:1;V03:K0:rjLxZpxXJEA=:iZS72hy+yrvEHByZqM+bZ8 4eob7r/caxq2P5dshWMLFpJsYqOYBWJWoyEJKc5y3CsVwwJesrJXiRP5ZHkjAi4is7jX/NbQA S6FTQ+RWNEyIZC1RUl3Y/eZuGtq4JIJZeiE5Gk/4UIFLBm2hHN4IHXaY2U1GxX4DoyKGEhsi7 U8tfCmfY+2hwiAelID5uL1w8E0Ofm1fi4Y8MWz1Z+QwK0qtBQIwUJFgUvRvRuzzmEokiMVcn/ /lbwjrUxnzujXnfyCSxHsE8eN/UZVc4NqlkCeLB774Uojd0E18Z2H0ZOJqhnS6ETnGYIR9Sdv 0xdPkwOBfjMGXpJK0ASKWxabjCsHXdKXet3Gy/NnDzcAsU+KX1RzrEAIMbo4VWG9x5+AeRMaX W0EYCNdv7z/5EzIMlXm3/g1zXMhtsaZkqqcc1G+41RrH2xVonRszLv+c6PN3rimV/zTov7dER KzA4AzSSoHPA/H14RbrtpBebxciGS2lSJaIPUJFVons/EQnrlJOSFbDvmAtlz75xS7focUmql RMRGalr2xxu2HJgjtdfj7505oDhfM+zKH5mq9ByoGtUwYpSRDaIdk8zvGkyDnoci5eD/bjmSn qHwf85M12Hi1m02FCGG64Tcxt8z4LZ9nzQEShuDJmxtohzaOIV4WDM6CP+Dn5eqLFmM9XJ8Hz 3gyL8zK2+oUUONC8svbxLqLhX+28WXvdIqVJJ0q0uCK82ZYpIoM5wPW4lw2caxqk79BWdF5dX DDL9D8xhENbdrqI06fHGr3gr1CxMMuNpNBSvE44cW/2YcCFup9+8JzbWHKMVavab1lqmmZT9Q amceFs7Oyan3xfqWqVeDTcZV63u84/yMQreehqv36KfVprzltMAaBHd8m5Earf0OH/27H+9+Z ucLLV1OVHcrKNCrjN1h9zhK4lVycxrToiQNSOe+ZVtqqOGOfZqeAElgXKR4rR91vxc4GPxk29 F8gfFBERzDhw4vLZBfRCC6zcA8XaU1prWauFCr87DGpnKJhsQN/InzEJzrvicPAVqCyeHyFCI BwDwSNNPcI11c7enrTg8CZS0yma6QTEaV4YkEP0JhO8EpthkzPeD1D1YtwC6uu4gSPojM5Exq aEVvXSzgO3gJPiqxz77sdbg2yIsKJyuYbnA9nRHP+OPaU+jiogkihx4fg== 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=1628465765; 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=N8HsSvynXQOn+Juj/fjWhKELvCo3UgtKChEojOvggPc=; b=T0/3F+OWzFF00KRvPE+ljAxAMfi0ogykrrnOljT1EZGbzjdqhnSBOk+zQWrc1h03X0X9rb sEvqeUXYxi+23dQOlzXowkz3PRMVvkd7wODyDG7cgk3uwRa1IIqPk6VoWVhHtx/I/QeldS aLRzqNIisLJKhomSZ0wEi8U4pfipHxIA6Ued4Tn3OCqZ5K+g+V37wD+4TAA37ww2TAkM6q jZOdTKQL8dQLyxUS2/Ikeeerh5mkjxfDsstwUVvpydUg/cU4u2GCp2t8uBV5Tum5xZ1Rzj eJ+LdStVMgg94u9JSgulLOqZ0hQE4XklIykNvA9sAGyvTFH+6i2JrMqOGcd87A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628465765; a=rsa-sha256; cv=none; b=rdHgqECEIAYm8pGCpnxIedk/05r2LaNqUbwlJVr0zCoSPm25l7h81Fsh0evhMOH+T4AZTU Imp1x/MF60zeFfv6LhpM7uLKh25e7YpbkcyGKADR058LSa9Eu8Zovyd/kE4JUtc5vnSqwr OVdqB9B7LvkgoYzt6xXp+7BtDPAH02/5xZi7iY0NAbqaGRMqVPyLFsz1KzJ2ABYLZxv/BP fXqknmdkamTXNMtyDW4ZJq0n2ImVBdilnndEozE4JM30LV/JnmjY/TO4+61e56MAQqDaaJ qa6s099O7pjHJIAqoOYnPP3YW7ouZiqghsYjP+WVBSRe2XOCJHps/WiYPa3VBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=EOs8GFQ4; 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.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=EOs8GFQ4; 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: 2C896D1DC X-Spam-Score: 2.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5I8Vf6mfMhS8 * 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 e671c3fbf9..e59a44c521 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -280,3 +280,33 @@ library.") (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.32.0