2021-06-05 16:59:56 +01:00
|
|
|
{ lib, buildDunePackage, fetchzip, cppo }:
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2021-06-05 16:59:56 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
version = "1.1";
|
|
|
|
pname = "ocplib-endian";
|
2015-02-20 10:37:32 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/OCamlPro/ocplib-endian/archive/${version}.tar.gz";
|
2021-06-05 16:59:56 +01:00
|
|
|
sha256 = "sha256-zKsSkhlZBXSqPtw+/WN3pwo9plM9rDZfMbGVfosqb10=";
|
2015-02-20 10:37:32 +00:00
|
|
|
};
|
|
|
|
|
2021-06-05 16:59:56 +01:00
|
|
|
useDune2 = true;
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2021-06-05 16:59:56 +01:00
|
|
|
buildInputs = [ cppo ];
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2021-06-05 16:59:56 +01:00
|
|
|
meta = with lib; {
|
2015-02-20 10:37:32 +00:00
|
|
|
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-06-05 16:59:56 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2015-02-20 10:37:32 +00:00
|
|
|
};
|
|
|
|
}
|