From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QFMOGMxiQ2LtpwAAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 21:49:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SAZ5FcxiQ2LjbgEA9RJhRA (envelope-from ) for ; Tue, 29 Mar 2022 21:49:32 +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 141041902E for ; Tue, 29 Mar 2022 21:49:32 +0200 (CEST) Received: from localhost ([::1]:41066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZHqN-0000AA-3f for larch@yhetil.org; Tue, 29 Mar 2022 15:49:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZHpw-00008I-JD for guix-patches@gnu.org; Tue, 29 Mar 2022 15:49:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZHpu-0002gC-Ed for guix-patches@gnu.org; Tue, 29 Mar 2022 15:49:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZHpu-0005AZ-CZ for guix-patches@gnu.org; Tue, 29 Mar 2022 15:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v5 22/27] gnu: Add tree-sitter-typescript. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Mar 2022 19:49:02 +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.164858333319836 (code B ref 49946); Tue, 29 Mar 2022 19:49:02 +0000 Received: (at 49946) by debbugs.gnu.org; 29 Mar 2022 19:48:53 +0000 Received: from localhost ([127.0.0.1]:33661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZHpl-00059s-FZ for submit@debbugs.gnu.org; Tue, 29 Mar 2022 15:48:53 -0400 Received: from mout.gmx.net ([212.227.17.21]:55609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZHpk-00059Z-2Z for 49946@debbugs.gnu.org; Tue, 29 Mar 2022 15:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1648583326; bh=/Cp6p3G8V+ww1Q55xWjsey9p22oU1xaAyBZbcNXGQhM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=aDUzK4+Z0xTheSAhPXNctqNDP4aeMcULI+v9hstKGF9BlqBXDsCUpqeE0DRFkWcI3 /w+1zmWoNGQbvbQ90AXkSP7vgoHDEcBGEmFGyHvZo5nhyt1LQWfCMYmU+s8oj11rwP QA97V/Tm8RtJdvn0EzbzHTm+EQehjqmC3Ybikjtg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MEm6F-1nnqry18wN-00GFrH; Tue, 29 Mar 2022 21:43:45 +0200 From: Pierre Langlois Date: Tue, 29 Mar 2022 20:43:13 +0100 Message-Id: <20220329194318.6106-23-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220329194318.6106-1-pierre.langlois@gmx.com> References: <877d9s2qa9.fsf@gmx.com> <20220329194318.6106-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:XjUQ9ZOCV1GrMpaYqma+JQACJnRWKmGITiVQRz+GjQtkSi4KjKG vD6yBkm8JmcNWvbSHRx+4rCm5gUjZshfw4P3DLNmqHycbcHaPpjXRTRmkfPKMOE8P9+/2Ut q4Aa4ngrW6zqYYN6k3zo4wBwBSD1R3F4ThLa7MC0dvBjh0hDD2CRqDzLawZbL843rvnmGo3 MGaHnr/dgrbcYvdKCXS4w== X-UI-Out-Filterresults: notjunk:1;V03:K0:6NnhinqrqLg=:mKqGYOc+pWj4+HEThkktR5 4FlQeU3iiYBdKLxEmSirPMNrT/Jmr1li0zdo8WORC2MY6xB/lWWFlH9l7vI5fi9THv6bLkrUj KtID8pgECqBPHRIPoRlisrusNJqDLjhQNTKJ1J0j7rKiUNP1o3QfxKblvWmvOujm3D9omrDnI 2Mali5xgxNIApMOJ0jVMBko1kr0QpnPPyM+lbfsOJTtN0Qk9AsPMT2x1Tx/dcGukHE2dhkm9f dlwLrUf5YmKz8TB4tOR/aqluDMwwj18F4DkymOH+3po48D4hxfMTqZy6iyOhWgUfz2pIVqMXO M1YUVkUk2xrc1tfb3LD5BUvxUeEgztJCPeWh0aR5Mu7Zrh3QwuNAXnNWET6fViBTEcJzgd5b/ /bkAAwXLnh/XtQp8Uh8jnaPkUPO9tejNHmrR+NdaOlF8k0Ngp2/P1hPlL7agVLPQDvVciDUfw CFOGUwVtOCXl5tkdwAudpUG88x1GxMWU3io7etzLCsj3iSoAj0948/yuouYePhvwXuyp4aECc mfrGJ8kPgdu9N/YCNfb3lJtL0+Nquv1Xh954PrDcCkUYxgigpEXxBjBTm9voGBRShggpos9hQ /qHkgJNOvqwBTzhP0xbVqruaY8TOqjy4f+Cn4dixqqn3Wynw1YI4cX4Fog5uk/sBZznDUcSUp 28DRmJwus8U2Q4T44mO/jut0p76p/CDdRNU7VOuYvYsxWmbT0AGncPqqvdhXkeaBJFmjDBHYA YV2TnYpQhze/2sYaPPWGQvga0xLh8VnBgnpV6jNnH8sYa/83LXlp97DvKp3iEY2Ugxi4tucTl gqZ8CxM6dYTDvpPF58W9HdwC4LSnJ3rBMUiIQVnj05eOyiN76WvgaVBm3eV4T3HmS3hBgvTp8 Ek0Jx+9SzlwMwAZOjeno10uqQ94brSJ76njGs0AGWzwakgDjb1wJf73Py6Wpx3WXyWB2eVpw/ +OWzr/Q6h3zUae5B6vwct1gx1askAxEPNoGVh9UERPjMJ6VGQlhyU5TB0dowBDZN8UCAeTrm+ FN1NfCU4YtaU62hP36SmX5yf+FBtZYegC0kGwvaInu3PU3jo+7FVi8S9CB9whnw0mf+Y3/+/n 7eunzzTmHqf2tU= 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=1648583372; 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=Jyw812Mdr8vqy1MRg93RDSt5EuOOASErZ4Jy4K4Fdds=; b=rL1WsoL7SskCn9ikEyshP/gK23YAMwhwpocD5xp4bSZnZCadEbpUa+guvIg8BaSUSrPmK6 ZGK81LHo87JDtXRIS0rCiQKlzMtNgkHk7z6DYkDhcGYV1NPoa+6c6pmwheqf27VeuJID/b 2bmqZlJXKLumI/m/FwqJUFdAy1jTcZQ6fQy4WPnyuTPvZg1LzgGonaVmyqVEGIAJ+HKoNm G5lrCelrv83piUaRpraUNHBVdfzY6HZD4eNwRbDYEF5td2bVmtUrivN4DzNfKEfULPCrbZ RivdGZINkhDQSm+1egXp4bzmBV7g4VKrjXqn0JW6usBi4JfKPQzBGUPSN5+iAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648583372; a=rsa-sha256; cv=none; b=Zr4BKhipv8lINCKfuIDczkOH9kmPhqmOfW1TUwYZdT0eXO3yg0QoCMKyGpf2Cb4dG9yyhe 1gM8bf8aMZFP7yYe29C/v78M6VK35L5j/NXQ8acNNsvgL3EdOTyODX/OkHDeUNhSX+UlY/ aDDD4qJZ0q9od32Qimiyfl29Efzl44iTYjhddS4DcAMATt/xqKrHbI1TqGL4XzLgqQBpDh HHN7hDVhOmb+pA9hQ7Espfc6auVOzbAhs2NY79H4zGoKCIb8S7WAxFhNbtESh5Vdt3qBnM 2mLO70OYwK4r+eQzJlPNQQJtACyRLYt+jLWqre9fC0XpLFOxVj9zfhN56Ipz3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=aDUzK4+Z; 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.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=aDUzK4+Z; 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: 141041902E X-Spam-Score: 7.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: JDJWV7WzaH1P * gnu/packages/tree-sitter.scm (tree-sitter-typescript): New variable. =2D-- gnu/packages/tree-sitter.scm | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index c37183e131..756dc0d540 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -595,3 +595,43 @@ (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 + (let ((commit "111b07762e86efab9a918b7c721f720c37e76b0a") + (revision "1")) + (package + (name "tree-sitter-typescript") + (version (git-version "0.20.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter-ty= pescript") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1364bm3wbqqzvp03cvpx1w89bbqynb1v62i46gy7f6rhib9= bf63a")) + (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-si= tter +library.") + (license license:expat)))) =2D- 2.34.0