From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SLF+BVUagGP/cwAAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 02:28:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kDR8BVUagGMiagEAauVa8A (envelope-from ) for ; Fri, 25 Nov 2022 02:28:53 +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 D18C3275BC for ; Fri, 25 Nov 2022 02:28:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyNVi-0001hi-PJ; Thu, 24 Nov 2022 20:28:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyNVg-0001gT-E1 for guix-patches@gnu.org; Thu, 24 Nov 2022 20:28:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyNVc-0000xF-Hu for guix-patches@gnu.org; Thu, 24 Nov 2022 20:28:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyNVc-0000dI-En for guix-patches@gnu.org; Thu, 24 Nov 2022 20:28:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v7 27/32] gnu: Add tree-sitter-typescript. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Nov 2022 01:28:04 +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.16693396572350 (code B ref 49946); Fri, 25 Nov 2022 01:28:04 +0000 Received: (at 49946) by debbugs.gnu.org; 25 Nov 2022 01:27:37 +0000 Received: from localhost ([127.0.0.1]:60927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyNVB-0000bj-8U for submit@debbugs.gnu.org; Thu, 24 Nov 2022 20:27:37 -0500 Received: from mout.gmx.net ([212.227.17.22]:38689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyNV2-0000aK-2x for 49946@debbugs.gnu.org; Thu, 24 Nov 2022 20:27:28 -0500 Received: from localhost.localdomain ([82.69.64.142]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MvK0X-1ohG8t0F29-00rHap; Fri, 25 Nov 2022 02:22:22 +0100 From: Pierre Langlois Date: Fri, 25 Nov 2022 01:21:37 +0000 Message-Id: <20221125012142.22579-28-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221125012142.22579-1-pierre.langlois@gmx.com> References: <87mtfi63ut.fsf@gmx.com> <20221125012142.22579-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:+Gipa/kwImVmKjue4qVtMbd25NS52f65C+QzfZDc94QomBJ1ElT FXSwclFS4zmwzedR97g+qN8cIPAkzbukO0aPw2IM7H+UG9lHWk+hF7G5b2nFO+i13FSi2ao Sq+si7i5nQFb0Jj82e2daRRNGjopQNud+Fn5paCAjpYZthbVWJz1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j1VV2NDd7EU= 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-bounces+larch=yhetil.org@gnu.org 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=1669339732; 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; bh=6tFQmHsLMibByvIrtxInRlxH3aTs7R+aRr7QTsQnsSk=; b=boKfTfJEmY6BFScUuGWiilCGIBri2GMXefNUTuPxPDhuRqUROCF9YcG63iL5hjjK9rhhha xhnI+FAP6MLEdK/LXqHNH/FDvRrAeae/HlBJQjJ8l1szhYOYhHldOPMAPkf4FtNX7vLrbt FX31hpjgqv1OJ7x1OykGyhdT0admlew7GSPfIgpEPOCi1Ex3FFv7r7ncKdqMx69w3GV/ov iLNWsFeoMW1TNU8PPKlTsMbD3k3XAWwcQ6bz/b7YxwJ6UA3O6hQjliFxQOQFwo/KE7ZLVR GTpbW8CdBJisquGGMcfJa2mYkdRvgt1/DqF4AUzxZ/1xrKpOUyzbz11TM32gew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669339732; a=rsa-sha256; cv=none; b=VAqHIktqJCNNsT6KMAdtBtl+g1ziafN77sXHKkjz2NebhvAhgpuAkKkjn3TJkrUXgGxeG9 P4RJUQkc7mpUpIbDiM3Wn05NeoSpCOh641QTnFS8eP7EJNubv590GZx6ubzN16r3i0/3WP fvhavO9tuuzIi+BRzgoOY9tTHzWg2ip+QRQnSyd0F1ORHWITuc6wwcEpmo45lSDBDAkLRQ uR8CsX0+jD6HON3fV2T57TLtvMMwa9stpchiKRW63DAGdrsmyxxu8ofbErFgk515gmy2su I4oV/YXJoQNuwMHcqPL7pUvXjyiaCaXvLJ99/oxbn0LFJ3H1kzw/s8tx3asBfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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.62 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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: D18C3275BC X-Spam-Score: 2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: TR6Dx61pOL6U * gnu/packages/tree-sitter.scm (tree-sitter-typescript): New variable. --- 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 54f2affff2..7cf9a41105 100644 --- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -648,3 +648,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-typescript") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07fl9d968lal0aqj4f0n16p3n94cjkgfp54wynfr8gbdkjss5v5x")) + (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-sitter +library.") + (license license:expat))) -- 2.38.1