2020-11-06 00:33:48 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, cstruct, logs, lwt, mirage-flow
|
|
|
|
, alcotest, mirage-flow-combinators
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mirage-channel";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "4.1.0";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
minimalOCamlVersion = "4.07";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-14 12:49:19 +00:00
|
|
|
url = "https://github.com/mirage/mirage-channel/releases/download/v${version}/mirage-channel-${version}.tbz";
|
|
|
|
sha256 = "sha256-sBdoUdTd9ZeNcHK0IBGBeOYDDqULM7EYX+Pz2f2nIQA=";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cstruct logs lwt mirage-flow ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest mirage-flow-combinators ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Buffered channels for MirageOS FLOW types";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
homepage = "https://github.com/mirage/mirage-channel";
|
|
|
|
};
|
|
|
|
}
|