gnu: ocaml5: Add ocaml-ppx-optional.

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

Change-Id: Ia672a5ed7a1a71b520c1ddb7158a84ed60bde0ad
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
Jason Conroy
2026-02-18 09:16:19 -05:00
committed by Julien Lepiller
parent f841d2a817
commit 6453bfdb75

View File

@@ -4077,6 +4077,23 @@ variant types.")
from type definitions.")
(license license:expat)))
(define-public ocaml-ppx-optional
(package
(name "ocaml5-ppx-optional")
(version "0.17.0")
(source
(janestreet-git-origin "ppx_optional" version
"00gprmppf1w875r4r3bq9hfx333rarsnyxk1rmym66x53v73cz28"))
(build-system dune-build-system)
(propagated-inputs (list ocaml-base ocaml-ppxlib ocaml-ppxlib-jane))
(properties `((upstream-name . "ppx_optional")))
(home-page "https://github.com/janestreet/ppx_optional")
(synopsis "Pattern matching on flat options")
(description
"A ppx rewriter that rewrites simple match statements with an if then
else expression.")
(license license:asl2.0)))
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar