2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, cppo }:
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2017-10-26 00:08:35 +01:00
|
|
|
let version = "1.0"; in
|
2015-02-20 10:37:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-10-26 00:08:35 +01:00
|
|
|
name = "ocaml${ocaml.version}-ocplib-endian-${version}";
|
2015-02-20 10:37:32 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/OCamlPro/ocplib-endian/archive/${version}.tar.gz";
|
2017-10-26 00:08:35 +01:00
|
|
|
sha256 = "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw";
|
2015-02-20 10:37:32 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild cppo ];
|
2015-02-20 10:37:32 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Optimised functions to read and write int16/32/64";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/OCamlPro/ocplib-endian";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2021-01-11 12:49:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-02-20 10:37:32 +00:00
|
|
|
};
|
|
|
|
}
|