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

commit 0e4c5bdc36b9b0c7f24247fb2fcfde7bfc4c10d9
Author: Jason Conroy <[email protected]>
AuthorDate: Thu Jan 15 12:26:16 2026 -0500

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

diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index fc0cb05636..581d1cbcd9 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -588,6 +588,31 @@ string values and to directly encode characters in OCaml 
Buffer.t values.")
 functions.")
     (license license:isc)))
 
+(define-public ocaml-uchar
+  (package
+    (name "ocaml5-uchar")
+    (version "0.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/ocaml/uchar/releases/download/v"; version
+             "/uchar-" version ".tbz"))
+       (sha256
+        (base32 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
+    (build-system ocaml-build-system)
+    (arguments
+     `(#:tests? #f
+       #:build-flags (list "native=true" "native-dynlink=true")
+       #:phases ,#~(modify-phases %standard-phases
+                     (delete 'configure))))
+    (native-inputs (list ocamlbuild opaline))
+    (home-page "https://github.com/ocaml/uchar";)
+    (synopsis "Compatibility library for OCaml's Uchar module")
+    (description "The uchar package provides a compatibility library for the
+`Uchar` module introduced in OCaml 4.03.")
+    (license license:lgpl2.1)))
+
 (define-public ocaml-ocplib-endian
   (package
     (name "ocaml5-ocplib-endian")

Reply via email to