2021-03-29 19:03:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, ppx_cstruct
|
|
|
|
, cstruct
|
2023-03-23 16:18:00 +00:00
|
|
|
, lwt
|
2021-03-29 19:03:15 +00:00
|
|
|
, ounit
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "shared-memory-ring";
|
2022-06-24 04:26:47 +00:00
|
|
|
version = "3.1.1";
|
2021-03-29 19:03:15 +00:00
|
|
|
|
2023-03-23 16:18:00 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2021-03-29 19:03:15 +00:00
|
|
|
src = fetchurl {
|
2022-06-24 04:26:47 +00:00
|
|
|
url = "https://github.com/mirage/shared-memory-ring/releases/download/v${version}/shared-memory-ring-${version}.tbz";
|
2023-03-23 16:18:00 +00:00
|
|
|
hash = "sha256-KW8grij/OAnFkdUdRRZF21X39DvqayzkTWeRKwF8uoU=";
|
2021-03-29 19:03:15 +00:00
|
|
|
};
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
buildInputs = [
|
2021-03-29 19:03:15 +00:00
|
|
|
ppx_cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [
|
2023-03-23 16:18:00 +00:00
|
|
|
lwt
|
2021-03-29 19:03:15 +00:00
|
|
|
ounit
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Shared memory rings for RPC and bytestream communications";
|
|
|
|
license = licenses.isc;
|
|
|
|
homepage = "https://github.com/mirage/shared-memory-ring";
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|