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