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 cDQlOzNnK2EbbwAAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 12:53:39 +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 aFHsNjNnK2F1cgAA1q6Kng (envelope-from ) for ; Sun, 29 Aug 2021 10:53:39 +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 AD70F50D6 for ; Sun, 29 Aug 2021 12:53:39 +0200 (CEST) Received: from localhost ([::1]:42832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKIRW-0000c7-Od for larch@yhetil.org; Sun, 29 Aug 2021 06:53:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKILG-000674-0r for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKILF-0001fR-Ly for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKILF-0000H9-Js for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v2 14/33] gnu: Add tree-sitter-bash. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Aug 2021 10:47:09 +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.1630234022900 (code B ref 49946); Sun, 29 Aug 2021 10:47:09 +0000 Received: (at 49946) by debbugs.gnu.org; 29 Aug 2021 10:47:02 +0000 Received: from localhost ([127.0.0.1]:55576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIL8-0000EI-9k for submit@debbugs.gnu.org; Sun, 29 Aug 2021 06:47:02 -0400 Received: from mout.gmx.net ([212.227.17.20]:34677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIKk-0000AM-Nd for 49946@debbugs.gnu.org; Sun, 29 Aug 2021 06:46:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1630233993; bh=6vy3IoYr/SLa/e4w/SsJaHk5Zl4lutEoaiNrkF5/Xbk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=YlVVCJ0zwhBuztSsnsAYAuZlJ50RiOOVYIloJiqJ+z6am6yVRst2takXx9C6IDU6h UhynGnJwoyXo5uHzfEtS6KFC+fxBE61LmPky0Y0nZIZnxaCNJXXASr3d96xnRrE7vF yZQRYzZrflQvX9wJOzmmt14670NDzHpnvTXO4R0o= 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 1M2f5T-1mINK33bVH-0049WT; Sun, 29 Aug 2021 12:46:33 +0200 From: Pierre Langlois Date: Sun, 29 Aug 2021 11:45:49 +0100 Message-Id: <20210829104608.3103-14-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:NRL9WSsc3depoe8ALyD3zor6juWzhJN0dGYNwnKxuzxEBCkHlQw ewq1yYCKIx3KBqTwEhOC9+6/l53B+KWU0iKuB5ad/ydsLH/AtbTNF0RIKd9yKrME/vYjUHu g5vLEYXFOCwUJPlAs5zYxW7+2pdsG//teyKrDsgsHpc+BreK9MgptSmPzULjNR7ezV1BKk0 sMWDrZQaxXxPLy20yP8VA== X-UI-Out-Filterresults: notjunk:1;V03:K0:aluFdWl3pH8=:qy6643DOpfwUMSDFZlFIO2 1aw8ZLe3WR8jILdqibTC4e0es3Tmo/xtpn2qy5+GoO6pyIVPrzMm+z5eaad8dOGLaV/MAxXk+ ygd6J6E5A+yytYZIxbAsQPDyKEBC7fRVzcgsdE1N86fb9q4YspZirsO1gz3ZCa/L70ihN494A HS+P/CmhBHJzhZHPeLfrLXJSnyI4Kgt9q2jxRnSI8rTAbaATnUX17IdlfOCJGYPwH2U33l/o6 ahmmmwMaYJwIOWILl5T0myjJ7UjG1tmNP1hWonL6jEhgPckQO94CPDzT5F8tcM6PV09B08SHf cZWtLgtM53+7+OBk/9EaqGEno22l/lYzlu+XhOab4kZYU/FJNoi39a7NuF7SuL0ULDoVzWt7Y lSDJ14o2ewbbWLvhE98yTnMNACCbkVGANjho+bsUsQogjwYOerdg4E4VHxmbK/DYGL5eGgk+U VUV39QnlkuTj0rcUiw+uPbR6nhELx1M6Vmlt6daG3fav2/rq0W79X1vIG7RbruA/h9ijykc5T Iiyi6VEOED+agbrvlqcAB48Rf7IUPjsmTLqCiAoffIGakTzd5pGcsjrpb705YW9x5eVipt259 J+0uGbg7nR9qhArocOOyQyvcZe8GnSr8Niywp80mWFovJraUR1kIiFXCYI9e2/7Yd9cIyU4y5 cKxTK6PKEaSzRueG72zmiWoa+mpKU9AejzRh1z8QXNf2EheYAvvMXSs8G815HIG35YRpoaz8w rm/YmhXkW9E5TPyfWYkpBtabZPkwSUV4B0vbqPEhjev/zksdMNopT4bkiwIqPC9p14J6FG888 LwEXWnqwIbgOeiUTCiMfVtqRE4ScYe/Cm4J7+9uL5cnwdtYAmOvMoXpTWIIPKJxjBYQZbMP1u ItomU7sSWxn8MNqtB3DbwWx56oOb13epOLyJYITQqLDZAgvv7sf8V4NeC3wsotD6xuQ5Fg5D5 WII6Zb5XjIxn9e+LnWlz0rZCjLY57OwBAJNKhoDIG7OqGMhOnY5F9mKK1YFBbBnYFquLLiaaw Ag3qmTxgYCroWa54NGqcUCodgAldxQCqpVQIP2cYryxUD9A/LYBbqd0tArxIoA4xHnmULEBgj HEGSePIWOMg3vnVV+Wbp8lpC1wScsNHVGq2IkmGwQCh57MZ/0Pii0Bqhw== 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=1630234419; 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=khslvHrZGKAEqpB4b8V9jne4VlpoxlG2yd16c7jmVCU=; b=TNFLGlTR8PJKFtrz9+x5wDjty33A6Z5DOzV0kvZwSBZNVCMibdwRvWFQmf8LyYG0elN8Cp wxI8JvIpn4TBOakY0sMi6DIPJSsqTfF2DHTisU0lNf15G6h92HmAm5GgvSxNF07BCJWKFY TNAzYa6VSfv/6rMlM5QPW0tOSCYVamjcfxQkcqCJtFjvWkbVfd0P2msFGgmwpqYgUNeJPd AFsAoTgHkngzJL7riD/7sOnYnprxykDTNRKH5G9pffSNXwqKPN67wHRCoosAaRhQdn9N1/ 3XHle58OPzux9xHzdQ3MbizseHY3qiWGm31GyzcY0f/8Jgs5tANpSM9H4tOhxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630234419; a=rsa-sha256; cv=none; b=gtR++OskSSZog7tBy4ycKDbinIryFOnULF5LrZEzvZQN3yIv6nzylDWvuobUc7wCoMnLPW B6gggIKGzBQqGkPH6KpfP9vrL20prsoj8G3ABm7IWKnfashgEPd8BI23XuERcVBN/yLewn AQMaYRc07cvONuOAkpurRBs7GeYJoniRRlBBFh/f5+8cBvXVP5Yk/ubJeJkakeEgMBbZJk UQlK70+4KXl5nwqsy/m0lwE1ba4XiyMah4LZrBrFHm+fbu2q9AZi3QlraKDBrYxZo+zTE7 pqOlaa9JkPLCI8rLZU8PYZdZeVskWy7jnRIutPCtnciwAyzpioNFIUWSVMDEEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=YlVVCJ0z; 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=YlVVCJ0z; 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: AD70F50D6 X-Spam-Score: 2.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: veAtm+XA8IF0 * gnu/packages/tree-sitter.scm (tree-sitter-bash): New variable. =2D-- gnu/packages/tree-sitter.scm | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index 07bdb54627..f98a7d392f 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -215,3 +215,44 @@ This package includes the @command{tree-sitter} comma= nd-line tool.") (description "This package provides a C++ grammar for the Tree-sitter library.") (license license:expat))) + +(define-public tree-sitter-bash + (package (inherit tree-sitter-c) + (name "tree-sitter-bash") + (version "0.19.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter-bash") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "18c030bb65r50i6z37iy7jb9z9i8i36y7b08dbc9bchdifqsijs5")))) + (native-inputs + `(("tree-sitter-cli" ,tree-sitter-cli) + ("node-nan" ,node-nan))) + (arguments + (substitute-keyword-arguments (package-arguments tree-sitter-c) + ((#:phases phases) + `(modify-phases ,phases + ;; The `prebuild' dependency is a way to intercept the build st= ep + ;; and download a prebuilt binary instead. If we remove it the= n the + ;; buid system falls back to building from source. + (add-after 'unpack 'remove-prebuild-dependency + (lambda _ + (with-atomic-file-replacement "package.json" + (lambda (in out) + (use-modules ((guix build json))) + (let ((package-meta (read-json in))) + (assoc-remove! (assoc-ref package-meta "dependencies"= ) + "prebuild-install") + (assoc-remove! (assoc-ref package-meta "devDependenci= es") + "prebuild") + (write-json package-meta out)))))))))) + (home-page "https://github.com/tree-sitter/tree-sitter-bash") + (synopsis "Tree-sitter Bash grammar") + (description + "This package provides a Bash grammar for the Tree-sitter library."= ) + (license license:expat))) =2D- 2.33.0