From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wBFMLT5JgWISNQEAbAwnHQ (envelope-from ) for ; Sun, 15 May 2022 20:41:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WAVJLD5JgWJCJQEAG6o9tA (envelope-from ) for ; Sun, 15 May 2022 20:41:02 +0200 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 61D0D12397 for ; Sun, 15 May 2022 20:41:02 +0200 (CEST) Received: from localhost ([::1]:45484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqJAr-0004Jr-JT for larch@yhetil.org; Sun, 15 May 2022 14:41:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqJ96-0001o0-JO for guix-patches@gnu.org; Sun, 15 May 2022 14:39:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqJ96-0000C2-AG for guix-patches@gnu.org; Sun, 15 May 2022 14:39:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqJ96-0006fA-8O for guix-patches@gnu.org; Sun, 15 May 2022 14:39:12 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v6 22/27] gnu: Add tree-sitter-typescript. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 May 2022 18:39:12 +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.165263994725525 (code B ref 49946); Sun, 15 May 2022 18:39:12 +0000 Received: (at 49946) by debbugs.gnu.org; 15 May 2022 18:39:07 +0000 Received: from localhost ([127.0.0.1]:50702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqJ91-0006dP-2e for submit@debbugs.gnu.org; Sun, 15 May 2022 14:39:07 -0400 Received: from mout.gmx.net ([212.227.17.21]:39131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqJ8j-0006Xt-0z for 49946@debbugs.gnu.org; Sun, 15 May 2022 14:38:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1652639923; bh=YlonIHsU6WCnPES0mZ9XvRhq+5wL1dsjaxX7TUiXt5E=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=eD3j4T9tgWQAYVmP2dKgGKp0uKg10Bp393HYkpnHHLFbsOw13RP2ofa5Ct+xzJMvl zaHO3/LLFCiY9W+vE1349PgRxRuWXy03TYH/hER/hXGXXiJP670Sw6RzLawTDBBZJV 0+NeuAfrdbnsJ4WTQ8A2NyUlzQTq6GvNP9K5IpdQ= 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 1Mw9UK-1nZsiV0efs-00s5pm; Sun, 15 May 2022 20:38:43 +0200 From: Pierre Langlois Date: Sun, 15 May 2022 19:38:29 +0100 Message-Id: <20220515183834.18771-22-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220515183834.18771-1-pierre.langlois@gmx.com> References: <87mtfi63ut.fsf@gmx.com> <20220515183834.18771-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:vfXGIVhy0tAVAqbcXVwkLH8KQlXsGeXy3/N6hIeuWr9Ifr3OL96 w3qmO5QQ3v6nfyLkxu2HaXffOsSBrjolWYcCCG9cpGwGPjThywvHPwGpf9SIGGXLLPuTjPu Kr5IQruVtEMb0kxpy3t3hgNnOStmpiIaXCAMPPQT6cQ3NswyJ651GGOn5fZqlM+L4ufZkVv bDRmVqgDJ8zoYNntG1HoQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:8cbU2RQXiBc=:IXtffQ6j56kTp5IC6224pr St0Mh2QCxHSv/ID9ZPaonuRj/uV8J4HWrAGB2/pJzpMKi8WexbDR8P09b/lynV+CSuY36PU0K Mva1UM0+AQ6SzVCqGUMZflwT/gOR3rVrG8Nhi8sSZ58z7qPfgTcTvP+AA8sAH5T6AuoI3ok7R h0CepOTF1n4t75fVoCZtQ3g4nNv6Y6no9cizORkNisoIqPw/kBTkpQxtNEeEWoTIMNlv00gtm FHA+E85T16MwsjkDsD5CA2j/6lehY4hSaluRu/J+yfaUu1OodR5xOvdCsvz+m05AQhpLAynA4 YPTlH5UVKUIYYgVRT8t7MSgC3c37EGdCe8mSTzWJtuoPtwwgDdK5VwD1FQCAi8VUYCeNvB7fr 9h/gJH3Re4dOH6b34U2WrreiVuT/M6iHMVqJRdtSEfw/oVOKHh82aE+Zr8X5LMsr6G4maWvo3 vTPytvkuIy35NuXz4+tQtSaDO/YMzAHXqBiAGHRjBOKW2K8/9zN2EJh4WCf5F1FolcYSJJo1H dunvvLC90NvqhFSbaPyGWZyMUg5H3VXtLb5C38sntJGhq77YHfYSK/XKfIhZQIG7B/e2tAoRE GgEjTsujtKJ+s4eeApOZfjNnPvKvQv8voTbgZeQcaUs3I9kQOew1jtZDL3oi83RPbI5d9zNRy 9MjthxTgXojmB8XRwY24SNefrCsoslAkQ9HTb2sTaHcxx6948ZJEMadkd3ZxvQ9rMvuGnGDb1 8P7r+fA8gtCkXtN8KWBg9sFWSs40NpORp8oIFm3v5XNUko+Jq+iHrl4g3ciVhtq1wdNrP0GSr Fx8iPUtxzMYHxG/shVcUSF08khsRXahNHhDz2aJVVTJof1MrvSbxWmJ0eZhR++RwgRnljmHSK uipmx1yk7aWwSeOoz1fMfkkCNoxo8JfqIDD51yAQt5pQA8w3M9jbOtsZBcb5H5ssNAbMMZv1h mP8/TKKUHaozwx+S60//9NjA8z3A1P1t2c90VVYV1dQZ3jmtnUICm0WBRHFUErVvootcY/2tE Gh++iT4Tz2Lyan4wd3jzchIMafnyiDaswOYn3lBSyYQ87mS6WGdnfrZdMuOnivv/7EpOs7FoL 5XdwVvvtSXqRYc= 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652640062; 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=T7bbfiMJ+kKUJ4EINvYGHO6fpAmVSL3ShAm/pXdZwKc=; b=hnxhGALQ5X5jr4WL4X4cXrp/kdWf61UttNjE3ZFpnIzxUAQrYbwiFpinC00V0qFWzs+5eE o/YhLDaJPQF0+xHbt57mAq3Ya5M2mDyXrBMUpRiaWjoKW2EwP5cffA5P6NdC2+J2QCf/n/ Gf9yknpgREcBg7lz+Eq8h2NVdk/l/SlOiu2taUEX+ig23jJ5mwyg2f+4iWhGXORGzrH9fu E/6OTo3dhd4psEWo/PFGOkLczLgTdAMPkOtn4v4JwvFa+LCNhmtnOJppAqa+yub5CPQiNW s2/2iQCuAnqDv01RLYXcqpXAD3R1CoQq1XU24eHOEBh3dx569IWGJKpip7lzOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652640062; a=rsa-sha256; cv=none; b=eP+VciCfIFN6AMotX/lH4qMpW5r9VlhfXtziFSDiTpW0/3xqPwFNshAC99vYzm39PBNxd7 weudE607n0tpIH+znAcb+h7JlTDXgYatEkVR0S1VstyYYpt5UPxn1cmBc6NUOIsGuvD9p3 D+hYoeDoiL/UVazWslfDicRJGDYPNQTU4cU7+Kb3IRsh8Jp9Kc4YhVeKwIlx4NZs8aw/m0 qWm++rNtmKBUQMxnBCAtjT/VqsDDz1YjjpeTet+fF9EkzQqwVGHDhMjaMEc8XfHKy+UH2C c3ASi/uM4GRWtMEkZS5v3RUzR7Tl/x4gcBgYJeAqJhH7NAsUFHmW65Vcf9h8gQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=eD3j4T9t; 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: 7.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=eD3j4T9t; 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: 61D0D12397 X-Spam-Score: 7.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: Qy2ehfi5Bicg * gnu/packages/tree-sitter.scm (tree-sitter-typescript): New variable. =2D-- gnu/packages/tree-sitter.scm | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index c37183e131..04747f47e5 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -595,3 +595,41 @@ (define-public tree-sitter-rust (description "This package provides a Rust grammar for the Tree-sitter library.") (license license:expat))) + +(define-public tree-sitter-typescript + (package + (name "tree-sitter-typescript") + (version "0.20.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter-type= script") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07fl9d968lal0aqj4f0n16p3n94cjkgfp54wynfr8gbdkjss5= v5x")) + (modules '((guix build utils))) + (snippet + '(begin + (delete-file "binding.gyp") + (delete-file-recursively "bindings") + (for-each + (lambda (lang) + (with-directory-excursion lang + (delete-file "src/grammar.json") + (delete-file "src/node-types.json") + (delete-file "src/parser.c") + (delete-file-recursively "src/tree_sitter"))) + '("typescript" "tsx")) + #t)))) + (build-system tree-sitter-build-system) + (inputs (list tree-sitter-javascript)) + (arguments + (list + #:grammar-directories '("typescript" "tsx"))) + (home-page "https://github.com/tree-sitter/tree-sitter-typescript") + (synopsis "Tree-sitter Typescript grammar") + (description + "This package provides Typescript and TSX grammars for the Tree-sitt= er +library.") + (license license:expat))) =2D- 2.36.0