From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0AFBH+9mK2FacwAAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 12:52:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +OAQG+9mK2H4UwAA1q6Kng (envelope-from ) for ; Sun, 29 Aug 2021 10:52:31 +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 49BBDEACA for ; Sun, 29 Aug 2021 12:52:31 +0200 (CEST) Received: from localhost ([::1]:41114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKIQQ-0007nE-Am for larch@yhetil.org; Sun, 29 Aug 2021 06:52:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKILG-000677-RY for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44065) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKILG-0001gT-Ec for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKILG-0000HO-Cy for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v2 16/33] gnu: Add tree-sitter-go. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Aug 2021 10:47:10 +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.1630234023921 (code B ref 49946); Sun, 29 Aug 2021 10:47:10 +0000 Received: (at 49946) by debbugs.gnu.org; 29 Aug 2021 10:47:03 +0000 Received: from localhost ([127.0.0.1]:55580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIL9-0000Eb-2h for submit@debbugs.gnu.org; Sun, 29 Aug 2021 06:47:03 -0400 Received: from mout.gmx.net ([212.227.17.22]:40611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIKl-0000AO-CY for 49946@debbugs.gnu.org; Sun, 29 Aug 2021 06:46:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1630233993; bh=EWBnebpNM3OBdhNzVFkv39ZnKeZoAiZCfe14kQyRHmU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=CkkHolk+0y49mRyw97w+NOVHbh8KS+9QFYRu44GBsFqbelya0l646CfNaq+24N41w 3laHSM/a4AMuYz8wEbtk2oX1iuHe82knjOFJZkHOWZf4qWOBCpDQOz2EEGqnvejEPe yCIrJGvdNZTTTYMtk+VP27zyYHWNfHnSwipn55Jc= 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 1MnJlc-1mltKH1pSO-00jHpK; Sun, 29 Aug 2021 12:46:33 +0200 From: Pierre Langlois Date: Sun, 29 Aug 2021 11:45:51 +0100 Message-Id: <20210829104608.3103-16-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:9S98DgeooSsGIw73KOLVTvzZgt9bLhFlNFQ8Tk4D3O82l+64jLn zUQexXcazJjk1mjM6QcNAAkZgzFdhw1XhOxuzbo2b2delEhNsc8uPiUFsgrVSJKBFGbh/6f rLNHeLJnBzu7Cvj3IwOetSGrr4ppdcg6ddoJ+8EFFfbpfa9F5gewPZKdxRioJb4hWSw4pzc 3Vamg62xTsdGROdTMOzdw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ul8wfoVUZ/k=:hHcD70Jy3sDQ+08RhU/2md 7Rvwfjshppgp7D/GYt/wJopQd39iG6G5T42cu/ryZILxO4jcdOH6Up4AnbCmJw3t6fydAGh8W 1og3hehed/ExUuMiGYGszPvwpnZ3aviLhYVOQvRi0Li2UxCwRn1J8+UrixQbtWc3F19CR8/dc f4KGtVZUrQPNzaBP8rhosEL5sAwETkr6Mb1arJmcMyZH0mzNbTnHQjq9S+UCMgud7W1hdxzYi hMQ+zxGX3gBzhrPaV2/2cXZkIMcZpCL21ysqiRmQ+B+RdlzszbFNoZyKrGHG416QKS512zO3e Y4oZ6tfUfdzFXNSqwTDCy4e1STngWI3VgO9qJNBfckD0hwwirxbdq07ux8+4EMnbvpe7wAVnc LBTSb5rHm8Z9wEj0CgWTsG/dlEUh5BzWlkxzej8Dh8Avb3CDCh420QQctR67SgGjyG9fMqx++ N/ENHX3tMVLgEcbMRAduhiIdkYsQdPdsGF+nqu9TIBa/m0vdBmlYSkTaihWrOZfMqeT3Md9e9 O3tTelkeFW62OLJ8at+QFtpyBuc+p89JF7XXk6AM6LMwAMZElzpAEUGlYX3AD9k+uBbiBERfq +bK2rRtJT/9PXXbfhdrGZobr1l1Rej5wMuvOONxaKLRMKVxbpZc5N9bJRP5baxLi+ptBrzY7U V0EqCqPT8UUAJUbK96zgkkOiF4Ht5iCvnqYrRFYRujDqqpXbZpU4vRq/4KhCqNuMZT3vsuj4Z jS7qpqobDJQ141mMv8YGiOgoZ7P7cE5y22qij3X38O89I8AGKNwT+uHEJk5DRvBP9QTBUO+mJ x7itRK2BX6d5+PSSS7G6XTxRRgfdy3x43czbKX/ZBQfoyAx5JPr2mTJvrd9NdIf4aTY6Ghegw Rf0VRFh6YCHwjBMe8oPLcO/rTHFTQT4Gcg//RvRvtAlOWiSBLm0FA+xe8g9/S/gBeZt3U76So zxRml8QI0ilb6FtHOLijKEcZrsZ6Z8bXGuZlwtPIb0lSiFDr0XUJNXGaViRchc+HaHW9Pd+rb 8s2igvmTwS2SqAhOW03KYqZLXs2VjceCoSiQgwpvRl92LH3pOzD5lymSz7LjJ86AnMJ5dgEpA CIdGNFIKkHUhy8PejQh4e+aCE56XzwWRaYOLoRS+neUOxtfZa5uTkG2hg== 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=1630234351; 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=G/EShPXEhlsRcRNA1/J5ZMRpcg0GEB1XqqeUoEghV1w=; b=gmvYoAwz6vs2DXFdVK1BjnJJuIbUsdvLfj0NNedyZZbVqetDtd+nxY/wy6RPv4oZ1n+tDL AwMl/gvZhw7uNpykQ4L3gJs/6+9bVu0HyJeUkN2bd6tCrNyVlGTpDoQTGkkWnjkxauLk7d pAxaZo1Cwdy1awo59+Q4QRBvzjKP9rD5bDOGJC3wywXS9hie7HvnxNrcc6GGNcp445CRH/ ZC7kl5rzQxCL39Qd/MvQP3svGwqoWtbb2RYLc6zjTAM3+XG0lBPQu+QUrgrWGXAF8U3N8A +tiDJOJqyZam/0EbJ+OQNVKKLUGO9T72hKdH9kysAIQ9OhUQBt0yGRvvjDGbvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630234351; a=rsa-sha256; cv=none; b=UNbCjN+j+kqaOnare7AcrnsHcuvQIMDvBkmJNN8YtXfJYPA4Zdb8WbGXnrCQnenLeuGNQE 6EsHuxNzBmdRrxfD/kx/T52vtWJI5j645aJ04KY6ZAgmNYMnEH2ujYZliCFHyqBhaIX6OO wpL9Q/T169trIVB/sp7UP/vIlX2gb3T0G21Ra1/Nnbfo8F6xzpxoHQNDoQa/KkbNo/mMx7 PPWorUn1EJhyhdlqjwUrO9mBWhFv1vIF7B8L1EKMS+TxUkJAqu+cHEbl89BpGicOs+eBu0 CuTmkZNetrhPR75Rqb08DRKAyshzgxFSuBBPh9N4hzEa20jjINWXVPvMr+vxaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=CkkHolk+; 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=CkkHolk+; 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: 49BBDEACA X-Spam-Score: 2.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: nRHU2qpmgTVQ * gnu/packages/tree-sitter.scm (tree-sitter-go): New variable. =2D-- gnu/packages/tree-sitter.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index 592a61ed25..5cb3a0e76b 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -276,3 +276,32 @@ This package includes the @command{tree-sitter} comma= nd-line tool.") (description "This package provides a CSS grammar for the Tree-sitter library.") (license license:expat))) + +(define-public tree-sitter-go + (package (inherit tree-sitter-c) + (name "tree-sitter-go") + (version "0.19.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0nxs47vd2fc2fr0qlxq496y852rwg39flhg334s7dlyq7d3lcx4x")))) + (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-go") + (synopsis "Tree-sitter Go grammar") + (description + "This package provides a Golang grammar for the Tree-sitter library= .") + (license license:expat))) =2D- 2.33.0