From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KIYVGYBqEGHsJAEAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 01:36:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id jeSjFIBqEGEFOQAA1q6Kng (envelope-from ) for ; Sun, 08 Aug 2021 23:36:32 +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 1EB4CD1EE for ; Mon, 9 Aug 2021 01:36:32 +0200 (CEST) Received: from localhost ([::1]:44888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCsLH-00021y-9y for larch@yhetil.org; Sun, 08 Aug 2021 19:36:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCsJw-0007vd-Dv for guix-patches@gnu.org; Sun, 08 Aug 2021 19:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43470) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCsJw-000663-4K for guix-patches@gnu.org; Sun, 08 Aug 2021 19:35:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCsJv-0000vZ-Vu for guix-patches@gnu.org; Sun, 08 Aug 2021 19:35:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH 14/31] gnu: Add tree-sitter-go. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Aug 2021 23:35:07 +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.16284656763391 (code B ref 49946); Sun, 08 Aug 2021 23:35:07 +0000 Received: (at 49946) by debbugs.gnu.org; 8 Aug 2021 23:34:36 +0000 Received: from localhost ([127.0.0.1]:54991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCsJQ-0000sX-5r for submit@debbugs.gnu.org; Sun, 08 Aug 2021 19:34:36 -0400 Received: from mout.gmx.net ([212.227.17.22]:36043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCsJH-0000p6-4c for 49946@debbugs.gnu.org; Sun, 08 Aug 2021 19:34:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628465661; bh=shc3G15aBuqHcjbBPqIaaR+aL+PuHYSEPtpOJfktdvI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=K3309ZimQrR5hPpBJrrvPwyXyngkZz69i6P0d0tV4GMXHSDNSNc88HC+oEQYYLaYp Bo+cp1eqSW6mhQoXdvx89R8E1XlCL0kn+zTR5SBRovJUyr7QpR2rklblKY05tyO/tA rfdUN2qtys5DAr5TNJAMmQk6M5Dw9cCfLrz11cdg= 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 1MpDJX-1muiIM1G6J-00qhMY; Mon, 09 Aug 2021 01:34:21 +0200 From: Pierre Langlois Date: Mon, 9 Aug 2021 00:33:37 +0100 Message-Id: <20210808233354.6745-14-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:jHb9Bj4Vp3C+rTnFWx+YiX0QqLPRQXKT5oDUkfXNeA2S1rMb7eN iZD55zwfSuDA4bfNmbJzu7TY1FAadauseZjQJN+1qbxjOxwpSOogbMOTS2kYJ3wG5Jjc/9f hOjbAs6EaSIl1J9Kqkc9W0naTDsL3CfNL6lFsMZTDgtU8wWoTlzRR7a0aatuCK1k/p1SeFn iGdQhcj32jNhbfK7FXxtg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Bl9o7EKe/gE=:jLUCV9WrsJxZJminIQPofK l6flhEMI/BAV/hu7ReQHPUHd1N8Mglx33tAyP7vpya74693nrLttUMfLPQKH0UNZfOX0DE8sU 9eg2bkJ1/LuMPyNoDgUTGCOyi2QKjo0OgDW2S1vZ+UsBv3ywfQONk99pk+l8HUM6y/HBY6ITx qk7vpFTnKgzPGlXD6KKhwwxYX1v31xjnApOBObG3mGslqXlfFy69WOs8yPGtxxiEk/TCbAtt5 vRxHgHMJgvvs75PqmNqO5i8gBMl0I2aoPAC2dSPMhdURJCMpL7Kje2mbZsfgRl2A6Jfr4QHDJ Wsv1yG/1eXtxg/iWwW4I8pzCR0enP6RSgm/Y39wlmR4RWRtEQuztW7mtRjkaljkL+ljt24XWK 92qOCWV2I1R4DxC12315FEcRKhIQPAaHoOB6N5dQPEOL2Y/ehLws91/ARLcVBlqSWXGPByqkS eURJmeqNh1RMHFKvm2y5UoW35ESsqGQff0A3llIxEWc/Gl3PZJSrPwrhxjRNnsUhdSnCSTrGt 9uZpixIhVe+TAnMFzjBlQLg7V/82T2CxCNsziKybMiPnHhWacO/mdPadVF1tj2Gv6rpMVhb+k 2tdJRzQ3/9YeS5L4LqT4EonkOOgnbdc3ik1Fx573qLocygsMFfDIuk8voVVj3tAk8JcfD7mFL J2uYaKkf0eTVF4ddDTUB+yFoBp6DMobaluzR4Nl0QrowJTjk8b6bU+OS/tMBoKFL0vee9PpNF yKD7qFGBQHnAMa+m5lF7L6C625N8TVMLknY1Cty2CpyCbZAeUy6606gqybDNOfBJAFZLgofCH 7zBrgVRX4HLs2DcaRAQjk8ZGp3OnMw3t87wOohO0iYg5o59hJNWsA71z3UJAjePt0H3FsxWMK VHYyjfhAZnTkQ3LAKVeqKedSNYHnO4WPhNjD4/dpNcD6D5A9VTbST+QTl3MZ07+iMM7YH3ie2 Fx7rOK9ieGqT/UXrN4NcK7qMN+3zGyo7lDnpnVNmSH7qbSis2NOTb0aKtiaVJmmgwR8Z65gW/ mGWN/mzaiRwIjvedwUJSFAcv+PI8yg6CLDgBuLSr9WJVKJPHCPN3Y0EjHI75RC46F5s1vJwhg T0qUuTbV76eMeJNWnQq8QWJyYY+iIHCZw5e6j95++OxghP+He8G5lDvDQ== 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=1628465792; 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=4IACZhkrSFW0pyt1LhcO/5Rm4q2Zd4Q8euKZdbHYkmo=; b=J3VVyUAMATUwGr/WMdpMYkSND9U5NHEJ006LCmz80A/5F+a1mBqUrg/s5sFH2CyAz/pKb1 UMTWgxszcppXffR5xKHv4Yo92NH8MtKmNoExVyCgUGJkr+aXB6CcmLpxFjriDBHaV47Fxo UZy4UQgseY1zlLru2nZMrCZlsgWtXU8llZSNRU+ZeRa5KGdzBM8e1OHz93CT+Ukk2hda8n uzO32jax6/H6JWgxS5PyKcAbOSfJg9XOLWAV7vK38WvbYRsvp+HkrZqYPwaSjNlPGr/GE+ 7FZbaLWY+ze7d9iCQZo2rc1F6PnGvUnQwxwxrkG+XFNtaEhFENqleXx25BI5Mw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628465792; a=rsa-sha256; cv=none; b=P5gd7+mYmkAZ7GMyg4dBwqzEm+zVAo5MI3jWHvyJdNw+pptCIBESsrDGb3ZROFQnY/d+An x1yUCy1TeAXENVyCZXjM6JjCW6F7qzJ1Acm+DsE1trDwq5Okf+OyE1HCsg0kcWzjH6B6M5 zq3lvwEc2RsZ1anTMzkWfREPPq3t9F2M8PVfZkKg3Q/nZSta0zHfsT4wh7+9ypFSM8o4ye WFmxs2iyqSmKD9QCF2Xqqpk5q5byvRbIIcK9S+lKuBtjYGjH2G14C8fjrN+KuO8HdNGF/M GCCSmQw0W+/ALb3UR909tkCbNDLzLpCXQYJs8sN8Zbl7aX3mpAdsOYHXS6eGXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=K3309Zim; 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=K3309Zim; 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: 1EB4CD1EE X-Spam-Score: 2.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: JU7Lt42Iy20+ * gnu/packages/tree-sitter.scm (tree-sitter-go): 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 05929a9062..f163efd7a3 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -22,6 +22,7 @@ #:use-module (guix build-system node) #:use-module (guix git-download) #:use-module (guix packages) + #:use-module (guix utils) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-graphics) #:use-module (gnu packages node-xyz)) @@ -201,3 +202,32 @@ library.") (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.32.0