49114dec1f
This OCaml library provides optimised functions to read and write int16/32/64 from strings, bytes and bigarrays, based on primitives added in version 4.01. Homepage: https://github.com/OCamlPro/ocplib-endian
25 lines
668 B
Nix
25 lines
668 B
Nix
{ stdenv, fetchzip, ocaml, findlib, cppo }:
|
|
|
|
let version = "0.8"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml-ocplib-endian-${version}";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/OCamlPro/ocplib-endian/archive/${version}.tar.gz";
|
|
sha256 = "12xjvzw245mj4s02dgi4k2sx5gam7wxi4mbxmz6k18zg64n48yjd";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib cppo ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
description = "Optimised functions to read and write int16/32/64";
|
|
homepage = https://github.com/OCamlPro/ocplib-endian;
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
platforms = ocaml.meta.platforms;
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
};
|
|
}
|