guix_mirror_bot pushed a commit to branch ocaml-team
in repository guix.

commit 661c9ab5780d960092b68744ec98bd3007737105
Author: Jason Conroy <[email protected]>
AuthorDate: Thu Jan 15 12:29:37 2026 -0500

    gnu: ocaml5: Add ocaml-rresult.
    
    * gnu/packages/ocaml5.scm (ocaml-rresult): New variable.
    
    Change-Id: I3b10b5960822e89765b6caebeab158528b85700e
    Signed-off-by: Julien Lepiller <[email protected]>
---
 gnu/packages/ocaml5.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index 2594a11d07..8c6a4547ec 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -639,6 +639,34 @@ functions.")
 spans without being subject to operating system calendar time adjustments.")
     (license license:isc)))
 
+(define-public ocaml-rresult
+  (package
+    (name "ocaml5-rresult")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://erratique.ch/software/rresult/releases/";
+                           "rresult-" version ".tbz"))
+       (sha256
+        (base32 "0h2mjyzhay1p4k7n0mzaa7hlc7875kiy6m1i3r1n03j6hddpzahi"))))
+    (build-system ocaml-build-system)
+    (native-inputs (list ocamlbuild opaline))
+    (propagated-inputs (list ocaml-topkg))
+    (arguments
+     `(#:tests? #f
+       #:build-flags '("build")
+       #:phases ,#~(modify-phases %standard-phases
+                     (delete 'configure))))
+    (home-page "https://erratique.ch/software/rresult";)
+    (synopsis "Result value combinators for OCaml")
+    (description
+     "Handle computation results and errors in an explicit and
+declarative manner, without resorting to exceptions.  It defines combinators
+to operate on the result type available from OCaml 4.03 in the standard
+library.")
+    (license license:isc)))
+
 (define-public ocaml-ocplib-endian
   (package
     (name "ocaml5-ocplib-endian")

Reply via email to