1{ lib
2, buildDunePackage
3, fetchurl
4, ppx_cstruct
5, cstruct
6, lwt
7, ounit
8}:
9
10buildDunePackage rec {
11 pname = "shared-memory-ring";
12 version = "3.1.1";
13
14 duneVersion = "3";
15
16 src = fetchurl {
17 url = "https://github.com/mirage/shared-memory-ring/releases/download/v${version}/shared-memory-ring-${version}.tbz";
18 hash = "sha256-KW8grij/OAnFkdUdRRZF21X39DvqayzkTWeRKwF8uoU=";
19 };
20
21 buildInputs = [
22 ppx_cstruct
23 ];
24
25 propagatedBuildInputs = [
26 cstruct
27 ];
28
29 doCheck = true;
30 checkInputs = [
31 lwt
32 ounit
33 ];
34
35 meta = with lib; {
36 description = "Shared memory rings for RPC and bytestream communications";
37 license = licenses.isc;
38 homepage = "https://github.com/mirage/shared-memory-ring";
39 maintainers = [ maintainers.sternenseemann ];
40 };
41}