depot/pkgs/development/ocaml-modules/shared-memory-ring/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

41 lines
784 B
Nix

{ lib
, buildDunePackage
, fetchurl
, ppx_cstruct
, cstruct
, lwt
, ounit
}:
buildDunePackage rec {
pname = "shared-memory-ring";
version = "3.2.1";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/shared-memory-ring/releases/download/v${version}/shared-memory-ring-${version}.tbz";
hash = "sha256-qSdntsPQo0/8JlbOoO6NAYtoa86HJy5yWHUsWi/PGDM=";
};
buildInputs = [
ppx_cstruct
];
propagatedBuildInputs = [
cstruct
];
doCheck = true;
checkInputs = [
lwt
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 ];
};
}