2021-04-26 19:14:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, ppx_cstruct
|
|
|
|
, cstruct
|
2023-03-24 00:07:29 +00:00
|
|
|
, lwt
|
2021-04-26 19:14:03 +00:00
|
|
|
, ounit
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "shared-memory-ring";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "3.1.1";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
src = fetchurl {
|
2022-07-14 12:49:19 +00:00
|
|
|
url = "https://github.com/mirage/shared-memory-ring/releases/download/v${version}/shared-memory-ring-${version}.tbz";
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-KW8grij/OAnFkdUdRRZF21X39DvqayzkTWeRKwF8uoU=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
buildInputs = [
|
2021-04-26 19:14:03 +00:00
|
|
|
ppx_cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2023-03-24 00:07:29 +00:00
|
|
|
lwt
|
2021-04-26 19:14:03 +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 ];
|
|
|
|
};
|
|
|
|
}
|