2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, cppo }:
|
2015-02-20 10:37:32 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
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";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|