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