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 ms0.migadu.com with LMTPS id kKo+ExJiQ2LIjQAAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 21:46:26 +0200 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 aHEqEBJiQ2IenwAAauVa8A (envelope-from ) for ; Tue, 29 Mar 2022 21:46:26 +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 0C61A18D64 for ; Tue, 29 Mar 2022 21:46:26 +0200 (CEST) Received: from localhost ([::1]:38972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZHnM-0006s4-WA for larch@yhetil.org; Tue, 29 Mar 2022 15:46:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZHlB-0003dX-3o for guix-patches@gnu.org; Tue, 29 Mar 2022 15:44:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZHlA-0001D8-Pe for guix-patches@gnu.org; Tue, 29 Mar 2022 15:44:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZHlA-0004zT-Nf for guix-patches@gnu.org; Tue, 29 Mar 2022 15:44:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v5 17/27] gnu: Add tree-sitter-ocaml. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Mar 2022 19:44:08 +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.164858303718997 (code B ref 49946); Tue, 29 Mar 2022 19:44:08 +0000 Received: (at 49946) by debbugs.gnu.org; 29 Mar 2022 19:43:57 +0000 Received: from localhost ([127.0.0.1]:33614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZHky-0004wF-MW for submit@debbugs.gnu.org; Tue, 29 Mar 2022 15:43:56 -0400 Received: from mout.gmx.net ([212.227.17.22]:35829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZHkr-0004sK-2T for 49946@debbugs.gnu.org; Tue, 29 Mar 2022 15:43:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1648583023; bh=yONk7EbSdFMcXlip+laMh75Ui33QmpBCs+/0eBbJrtY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=WwnWnyY14O49lDh/xlekF1Sm6m7OIgaftTOVWJbSTMUcqpUwIV6D72+73xXWm0wkA paEWDegOGpcGXwCj9MC7sq1FaAg3ybYnWaR+3hDo2J3VVWP7VDHo2YCgUDMguCzwxz iKS+IMAt08dUikJ9B6qq6jf2KGLh40obrOss+Qno= 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 1MwwZX-1nwkr60xKN-00yPOh; Tue, 29 Mar 2022 21:43:43 +0200 From: Pierre Langlois Date: Tue, 29 Mar 2022 20:43:08 +0100 Message-Id: <20220329194318.6106-18-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:94qsy1JAv64Jk27mkEX9ABPLu5mEJYffVWZxyImR+ANgVLTKY/r e1MHFmgcr5gGaV4Frj+m1jvG4hdqQ2sLq4U7LSHW2bdA5/1gsTqX6VQ6mlw/FbgUBkqzeOi 3Nlm/RKA2GFUKEhaAtuiEEQR+3MIHx5A6qUBYzLcFlnCo3hWtqc2kmaCIZJkLkmnrsyVC5f Fors+FSWWCSCbARXiQYKQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:ciowzI65Yiw=:I0P6wBEt3M2h/cSWy3jP7B HBMZcxHHjjodUPnhzLPDuzBa3kePKwqE2Hekk+2bnf46Tw5YU07nsOfpQbqMyM7j0UTltEjJD dkCRlltwBmmxVdBoSY7n7cFPK5uKxXjypAxUkakn8sT8Bj95nyP97lor2DCPn0oz8J90k7RtZ Lay+sNQe7Ec0H5OfUT7Il2qRTbBWwSNxBLgf9AO3DFEg6VbKdg3Tsm/ZyyTlil9mRocmYDQmt njYgnMfNp5ahL+b90Ife0qtFw3rrUKm7BPjpnVPIyZdNcb3rzK+5XXQGFl9odsIoJq2I4Zgah pO0hqYR6N06McSKXhKthMoG5hu7ukhmQyqYx6XHFuHvWS9f5sk9hx2FNwLL3l6/f65vyGgCkL aMMby0KFvzAN4NX94Ayx45odA5jy5kfQW1mtGfKvn4Eu24sovhcZfw4vU1QF8QvUSUQnBFfMx lhJJxW8Gh0feqLqgA22tK0ePt94A2uao2GQeJuH9xEqgxEohMAzOgLvtZGqh9bHwgjTkR9NyL bTtzZrLxwERqzSI0KiJnQGN2ZXjT38KQWgIvTu7tPBvD+pemvqVd0ySOZWN9Xjb7CN6fRNIb5 g0PmBw2Gcc9TU1beQddJR0u90dpzv+va6aQGs0lZ0r4nkUJHfvMkM245ERfjTLWVuZJQWEd+Z nQ0QEVBuLY3Y92VUDdX9huKYmIsVC7jfgGm8NeDLDY/SUL3t6EZIC1Y5WWZgm7jsT1KWtgxex yfhmvZ2qA9XJhD2tQ8/EvtFk6R2xVpCV45LHy6uuxGapUWQ84IUwDjvYHktqqYsO6+ORKrdOJ 0dMYOKARagVR3nL7kd4JrRHHeHnzS5QvjRl0SEvvirxIenmvuRNKTzJoDwPYbzxLe5568zGH5 laHYNlSK2aIS1529XbNtpVJH7AVH+i46pDeVyaQzcrD7timjr2a4V8xSamjaXL6MoMDnnF5V/ 6nN5QUc+v3w0IpANbuHaDREK0GB4/FqnFm1fpNUNRuABv984bnwrQNDjKHCiETlQWjv/t2skQ jCYDu9rp19PlOLUt6WAkKVYaxrsM/arURPg2E63EC9l7zkJHOUEK68t44ugQwdvdLDO9sUs4Y yIXzN2cLgw9j6o= 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=1648583186; 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=TzAo82dtf/dfnv5rl3fvQTzh4eMVGrYWeJotu/40Gyk=; b=IiKThUBSa+N6I0jERziCFphPDFT4B4ZNN97c9NFoi1/Stdgr/NE9rEJ89k7QzlbNQoe6+X nrm0jYSO3XrsJ7igdKDtiL8j+u9N8ft0QrDe+wQVLSxm4Smrhon7D7Drm/1kQyusSGfkRd DnqmCKBYDBV9T39NKaiq2zXU8mtJ3CylISAr/HqYQh4aGNpMSWoEpkz/1WKSPA1kjkwZb0 HVisq6FG7T6NyY7shj6htg5GcqvNI56zoC2L5tWf5hjBZUhgzpMDYs8sVX9DvSywprppEs aP506xVpO1pWE04O1o22JliDAqPoa1UOws6xOUSQ4NnIv8JZ0IdggWsp8I01gA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648583186; a=rsa-sha256; cv=none; b=Juwe9Fzx361AdEiYWEkEtIjwWrF8lRH7Pr3zASF0B1IlL97WVT5ZKbPoyqK0pc87c6sucK ld1J53bHsWzOMWnKkVosvEh5nPN6O2LmvvSW90G7a2klwTAI/ivMUL6KTDfHr3Hk1rg0ms mhMrMTSPtM+InYTxB8wG8oBq/KMKNf3hxlJkO/zQdMel2hJH4MW5BnkhLoNzLLu6gaWjSy gUe45+yEVkvkqzJ1Bz49L8grzioGKG3WAuv03zJw7QhdL+T54OvMo3S6/LX1kwVDY8MC++ jTVT8hUF0EjPFVnivqJMyIa7TblZDLnkvH+QM0+bjbS8pmYKr/mGswQKGoak7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=WwnWnyY1; 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=WwnWnyY1; 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: 0C61A18D64 X-Spam-Score: 7.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: YNCFy/VDvGBW * gnu/packages/tree-sitter.scm (tree-sitter-ocaml): New variable. =2D-- gnu/packages/tree-sitter.scm | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index a535d8bc4a..ff98044cc1 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -458,3 +458,42 @@ (define-public tree-sitter-julia (description "This package provides a Julia grammar for the Tree-sitter library."= ) (license license:expat))) + +(define-public tree-sitter-ocaml + (let ((commit "0348562f385bc2bd67ecf181425e1afd6d454192") + (revision "1")) + (package + (name "tree-sitter-ocaml") + (version (git-version "0.19.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter-oc= aml") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0iqmwcz3c2ai4gyx4xli1rhn6hi6a0f60dn20f8jas9ham9dc2df")= ) + (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"))) + '("ocaml" "interface")) + #t)))) + (build-system tree-sitter-build-system) + (arguments + (list + #:grammar-directories '("ocaml" "interface"))) + (home-page "https://github.com/tree-sitter/tree-sitter-ocaml") + (synopsis "Tree-sitter OCaml grammar") + (description + "This package provides a OCaml grammar for the Tree-sitter library= .") + (license license:expat)))) =2D- 2.34.0