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

commit 2716ed2e158084c471878299e11a9ace580bb0ac
Author: Jason Conroy <[email protected]>
AuthorDate: Sat Jan 10 17:13:11 2026 -0500

    gnu: ocaml5: Add ocaml-ocplib-endian.
    
    * gnu/packages/ocaml5.scm (ocaml-ocplib-endian): New variable.
    
    Change-Id: Ib9472272a79b551bcb56f0acd60a50b07ebe385f
    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 2c45f4fa78..15a989a713 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -570,6 +570,31 @@ string values and to directly encode characters in OCaml 
Buffer.t values.")
 functions.")
     (license license:isc)))
 
+(define-public ocaml-ocplib-endian
+  (package
+    (name "ocaml5-ocplib-endian")
+    (version "1.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/OCamlPro/ocplib-endian/";)
+             (commit version)))
+       (sha256
+        (base32 "1klj4g451s7m5r8bxmwc1rpvngpqdm40csnx9smgc06pwy2fax2c"))
+       (file-name (git-file-name name version))))
+    (build-system dune-build-system)
+    (native-inputs (list ocaml-cppo))
+    (home-page "https://github.com/OCamlPro/ocplib-endian";)
+    (synopsis "Optimised functions to read and write int16/32/64 from strings
+and bigarrays")
+    (description
+     "Optimised functions to read and write int16/32/64 from strings
+and bigarrays, based on new primitives added in version 4.01.  It works on
+strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
+big- and little-endian, with their unsafe counter-parts.")
+    (license license:lgpl2.1)))
+
 (define-public ocaml5.3-dune-bootstrap
   (package
     (name "ocaml5.3-dune")

Reply via email to