2021-10-30 18:13:49 +01:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, cppo }:
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2021-06-05 16:59:56 +01:00
|
|
|
buildDunePackage rec {
|
2022-03-21 06:02:20 +00:00
|
|
|
version = "1.2";
|
2021-06-05 16:59:56 +01:00
|
|
|
pname = "ocplib-endian";
|
2015-02-20 10:37:32 +00:00
|
|
|
|
2021-10-30 18:13:49 +01: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 17:25:15 +01: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 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
|
|
|
};
|
|
|
|
}
|