2021-10-30 17:13:49 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, cppo }:
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2021-06-05 15:59:56 +00:00
|
|
|
buildDunePackage rec {
|
2022-03-21 06:02:20 +00:00
|
|
|
version = "1.2";
|
2021-06-05 15:59:56 +00:00
|
|
|
pname = "ocplib-endian";
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2021-10-30 17:13:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro";
|
|
|
|
repo = "ocplib-endian";
|
|
|
|
rev = version;
|
2022-03-21 06:02:20 +00:00
|
|
|
sha256 = "sha256-THTlhOfXAPaqTt1qBkht+D67bw6M175QLvXoUMgjks4=";
|
2015-02-20 10:37:32 +00:00
|
|
|
};
|
|
|
|
|
2022-03-28 16:25:15 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2021-11-08 06:10:02 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2021-06-05 15:59:56 +00: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 01:11:51 +00:00
|
|
|
homepage = "https://github.com/OCamlPro/ocplib-endian";
|
2021-06-05 15:59:56 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2015-02-20 10:37:32 +00:00
|
|
|
};
|
|
|
|
}
|