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