Subject: [bug#66119] [PATCH 1/3] gnu: Add ocaml-iso8601.

From: Matthieu Lemerre <[email-masked]>
Date: Wed, 20 Sep 2023 12:50:38 +0200

* gnu/packages/ocaml.scm (ocaml-iso8601): 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 ea9d3e3594..5caa2d6185 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2445,6 +2445,28 @@ (define-public ocaml-calendar
       ;; With linking exception.
       (license license:lgpl2.1+))))
 
+(define-public ocaml-iso8601
+  (package
+    (name "ocaml-iso8601")
+    (version "0.2.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ocaml-community/ISO8601.ml")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0nzadswspizi7s6sf67icn2xgc3w150x8vdg5nk1mjrm2s98n6d3"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-odoc))
+    (native-inputs (list ocaml-ounit))
+    (home-page "https://github.com/ocaml-community/ISO8601.ml/")
+    (synopsis "ISO 8601 and RFC 3999 date parsing for OCaml")
+    (description
+     "An OCaml library for parsing dates in ISO 8601 and RFC 3999 format.")
+    (license license:expat)))
+
 (define-public ocaml-cmdliner
   (package
     (name "ocaml-cmdliner")
-- 
2.41.0