From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aPKbBPxIgWJO7AAAbAwnHQ (envelope-from ) for ; Sun, 15 May 2022 20:39:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GGx8BPxIgWJJkwAAauVa8A (envelope-from ) for ; Sun, 15 May 2022 20:39:56 +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 C047B12150 for ; Sun, 15 May 2022 20:39:55 +0200 (CEST) Received: from localhost ([::1]:44118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqJ9m-0003RD-Ui for larch@yhetil.org; Sun, 15 May 2022 14:39:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqJ95-0001hu-5E for guix-patches@gnu.org; Sun, 15 May 2022 14:39:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqJ94-000077-NT for guix-patches@gnu.org; Sun, 15 May 2022 14:39:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqJ94-0006eg-Lk for guix-patches@gnu.org; Sun, 15 May 2022 14:39:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v6 17/27] gnu: Add tree-sitter-ocaml. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 May 2022 18:39: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.165263994525475 (code B ref 49946); Sun, 15 May 2022 18:39:10 +0000 Received: (at 49946) by debbugs.gnu.org; 15 May 2022 18:39:05 +0000 Received: from localhost ([127.0.0.1]:50691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqJ8z-0006cf-5d for submit@debbugs.gnu.org; Sun, 15 May 2022 14:39:05 -0400 Received: from mout.gmx.net ([212.227.17.21]:47915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqJ8h-0006Xg-1b for 49946@debbugs.gnu.org; Sun, 15 May 2022 14:38:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1652639921; bh=YM5edGU1bLo9i1mczZiWlxXT/0S71h3oHUjjj709los=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=W99wU/aGlcxH/GM0KBoxRiRMTu06EnIu+9hsnuajl6pyR97cxQqPECt76SEby43qc yTVhaAB4PcqybPLqDDu60C4q4ScHOvXmjvOBvc/vSu9Z3Bhtg1xuc1ZB2t99nLn1Xm KWzIgvwmmaJ5X6xA3xmg1sP06qh6SLpgKIRfiYN0= 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 1N4zAy-1niiP70v00-010qno; Sun, 15 May 2022 20:38:41 +0200 From: Pierre Langlois Date: Sun, 15 May 2022 19:38:24 +0100 Message-Id: <20220515183834.18771-17-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220515183834.18771-1-pierre.langlois@gmx.com> References: <87mtfi63ut.fsf@gmx.com> <20220515183834.18771-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:xwB9Xrrh/9E9TykPjFfqp9aU3C0xRLWYcOaAEnJEhgdOYT/GnGc n5rgnDeoIpt7xIU42lp/oQ2pR2tdERDuvJ57vugla+liLKjTwkIkZhjOJx5PqXGjohCUWtL GI8bN237xQY3ihPlR0A20l2K2roerrWT13Ghp/NMIugkOEiriFMroUKEHb/VZirIJ6kGg4V jS8drbVLVWQ0vJ44XGkYg== X-UI-Out-Filterresults: notjunk:1;V03:K0:9j9aHcRJwRQ=:GP2B2LVRQLothvcLRRj3GZ UpsSZZui35dFLstIToCJnLzux4xQcubKFSlUNyvnabxbR+KcqPQ5e1h8R/HQkTuwFStnnNsRe goFsE3Ew6TgNwoFCcRIWnRWNpJY4APnUncAiUjWZNAqnMIWgaxX2O+nTVdwduVnXOMfCKM7b5 F+eq/z8+kVoPwDqTkaQK+tQdr7uxlIoVwW0JkgtFHEpgCfCWxbbO4REyoq59yZOnPWz18ZnwW 7Bly1T4tnDLl9i23Ba/8tmT02Uu6SCqC6dmbff3aqFk3vykHWVWBVgdz0oTA8/QoC7ApKLwp6 e9LOvokq8l4jx2jJ3BDjzs7u0qwa/3FUabs7TojsTrVwtP+bZO1OrhO6pCDFCTfEZnUZ4x5vy rThrkFM/KI65rdmgPt+T/5RVwjMRHnw6Vv2J4/z1JQms/AQZmaeDyd++roHTacL7rCZ9t0fae ULKt9/gfitsJPn2HsWigqxleC2UX9RRuGhuagN/4IQ+jX9D8+Kyxxj33Vg4YaHQ9kGY/FXfCE mB4mdgg12D6YwanjMbiFxor6QSs7KtOS3JX56XETLuVWhRLMKIxBTJjmQPTAN1q8KRIU+5+Et Y2HHzfwww2XPmcC6uEKd+X+m3TauhWRJ4kF1MZ48c7KArBuAiBDl7PJ0hvfOhHoL/w7v1Ffcx htY6RWdea1duk9pQEJR6ivpfhZc/ZRDu26zMqKn7qm+OvU7bOcBkRCnMN6KfEZFFtytDVAkZs 0AyleewmdiiOLsu8CUs3CpWEdfFASZHKmwKjccp3xY8kw99o78PrVRcRrCUy7QGnR39tKwhkS WoYGfd50RdCDGcwU8agOwsankzYt/F6hDAzdXTWyyfCpoYc/VvZUC5A0Jg3/YCVfzdmn1h8b4 VsgW2VrPwY08Xsv+60BqGSHihaklWmuDpD2RCk3T5xtu8WwyLAzVs5BXzk7lVO6jnhGF8kClF i5ZtzExFgUoiSIW2OkLVSpJC6SSvAfQINVWUJRmBv6fn//XxPI7p5tR0kv43uUYVR+SuPvTMY nKfb7T1VX3eiN4trf7kiMvbE1IDuLVUYj8kxV+WmJRpDR3jShnqRubHG82TXIiVC5MI7VRDbM 0x9xl/ngPw0z+E= 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=1652639995; 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=7mXxpurn1LdchjTgH9RfCfeVp48he+wsj15fFtbY7Ys=; b=uUPZAagunKbV8uVd2vKJRERcGsSpF+0MQgcr4tiA+j8ocEkG8HRmMm5SYDWvO3138FINJb gOc+k2LtgnQVlOeT/qgu9SkpcUiUrnrl/rNvifugBSHK4jKpw7dbl0ewkcuD/pM2BU3mD2 XPqP/IHYZClbNNyoybhorTqDJ4U5qGvl6TFJdBxJnY1VEzRWRocK9C/AXy45b8aRcfkmaF TgrZKF1Z19H30eUZAz2NWTERhibtjtA8ewoayzg8Grd8SCLKkuwCL9ixcQVgdUYEWztUac DsP7sG9vIDBIqPfsrTNIkpoDljPBA+cLvhlOHodPZ92OU2AVQhKg7EPkj+Ia9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652639995; a=rsa-sha256; cv=none; b=Y6cLRIM3nU+NV53x7DvYRFXzp7cgXox/g+Giaor0vb06ZVydkhgT0MapMYObN+sZhACBHw egZjxJJslZna1/9gX0z3qtSKtOCPAam6L0gODmm1dIruoRNJNaL/QVmku+FS2ZwLfkW/kq 9YdSUSq2J1z6RkGt+8dFSpJwKFtuRCu5PXjO9+BApwYIRxXPb+XpWFkbDm1AUHqCAQF6uB rpIaWx+Vqcb8qkUMWO7CFcfMAlMx8DllJ7+09OaKszo8VPZDWHvAqxgGzJ+yJCFscK7hFL XxtRzRJM2SplSvs798CfTnjOJoklTuinWk2BfYOg9Up9E+br7X9aQ6H56f1ivw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b="W99wU/aG"; 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.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b="W99wU/aG"; 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: C047B12150 X-Spam-Score: 7.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: CqlwndotXs2P * 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.36.0