forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / ocaml-modules / shared-memory-ring / default.nix
blob331eff1c1027a1a9b54145c245f0e6608ff8230e
1 { lib
2 , buildDunePackage
3 , fetchurl
4 , ppx_cstruct
5 , cstruct
6 , lwt
7 , ounit
8 }:
10 buildDunePackage rec {
11   pname = "shared-memory-ring";
12   version = "3.2.1";
14   duneVersion = "3";
16   src = fetchurl {
17     url = "https://github.com/mirage/shared-memory-ring/releases/download/v${version}/shared-memory-ring-${version}.tbz";
18     hash = "sha256-qSdntsPQo0/8JlbOoO6NAYtoa86HJy5yWHUsWi/PGDM=";
19   };
21   buildInputs = [
22     ppx_cstruct
23   ];
25   propagatedBuildInputs = [
26     cstruct
27   ];
29   doCheck = true;
30   checkInputs = [
31     lwt
32     ounit
33   ];
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   };