gnu: ocaml5: Add ocaml-ocplib-endian.

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

Change-Id: Ib9472272a79b551bcb56f0acd60a50b07ebe385f
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
Jason Conroy 2026-01-10 17:13:11 -05:00 committed by Julien Lepiller
parent 4196661b7f
commit 1854e21ce1
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -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")