2016-10-08 06:44:25 +00:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, cppo }:
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2017-10-25 23:08:35 +00:00
|
|
|
let version = "1.0"; in
|
2015-02-20 10:37:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-10-25 23:08:35 +00: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-25 23:08:35 +00:00
|
|
|
sha256 = "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw";
|
2015-02-20 10:37:32 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 06:44:25 +00: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";
|
|
|
|
homepage = https://github.com/OCamlPro/ocplib-endian;
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-02-20 10:37:32 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|