gnu: ocaml5: Add ocaml-re.

* gnu/packages/ocaml5.scm (ocaml-re): New variable.

Change-Id: I625c32f2e35dda2bb7f13eb7447b79ad68d863a5
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
Jason Conroy 2026-01-10 17:30:20 -05:00 committed by Julien Lepiller
parent 033d469065
commit c4fed7dd90
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -667,6 +667,35 @@ to JUnit and other XUnit testing frameworks.")
other XUnit testing frameworks.") other XUnit testing frameworks.")
(license license:expat))) (license license:expat)))
(define-public ocaml-re
(package
(name "ocaml5-re")
(version "1.10.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ocaml/ocaml-re")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1g0vmpx6ylv8m0w77zarn215pgb4czc6gcpb2fi5da1s307zwr0w"))))
(build-system dune-build-system)
(propagated-inputs (list ocaml-seq))
(native-inputs (list ocaml-ounit))
(home-page "https://github.com/ocaml/ocaml-re/")
(synopsis "Regular expression library for OCaml")
(description
"Pure OCaml regular expressions with:
@enumerate
@item Perl-style regular expressions (module Re_perl)
@item Posix extended regular expressions (module Re_posix)
@item Emacs-style regular expressions (module Re_emacs)
@item Shell-style file globbing (module Re_glob)
@item Compatibility layer for OCaml's built-in Str module (module Re_str)
@end enumerate")
(license license:expat)))
(define-public ocaml5.3-dune-bootstrap (define-public ocaml5.3-dune-bootstrap
(package (package
(name "ocaml5.3-dune") (name "ocaml5.3-dune")