Subject: [PATCH v2 05/16] gnu: Add ocaml-visitors.

From: Philip McGrath <[email-masked]>
Date: Thu, 16 Nov 2023 14:15:43 -0500

* gnu/packages/ocaml.scm (ocaml-visitors): New variable.
---
 gnu/packages/ocaml.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 50b0d1ddb7..f9a3932d18 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5232,6 +5232,28 @@ (define-public ocaml-graph
     (description "OCamlgraph is a generic graph library for OCaml.")
     (license license:lgpl2.1)))
 
+(define-public ocaml-visitors
+  (package
+    (name "ocaml-visitors")
+    (version "20210608")
+    (source (origin
+              (method url-fetch)
+              (uri
+               (string-append "https://gitlab.inria.fr/fpottier/visitors/-/"
+                              "archive/" version "/archive.tar.gz"))
+              (sha256
+               (base32
+                "1yx4bjw4yw3zi35yfp66x320xgb9f8jh7rqj1j7hrrvn0f60m2y2"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-ppxlib ocaml-ppx-deriving ocaml-result))
+    (home-page "https://gitlab.inria.fr/fpottier/visitors")
+    (synopsis "OCaml syntax extension for generating visitor classes")
+    (description
+     "This package provides an OCaml syntax extension that automatically
+generates object-oriented visitors for traversing and transforming data
+structures.")
+    (license license:lgpl2.1)))
+
 (define-public ocaml-piqi
   (package
     (name "ocaml-piqi")
-- 
2.41.0