2020-04-13 14:51:58 +01:00
|
|
|
{ buildDunePackage, fmt, logs, mirage-flow, ocaml_lwt, cstruct
|
|
|
|
, alcotest, mirage-flow-combinators }:
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "mirage-flow-unix";
|
|
|
|
|
2020-11-19 06:36:15 +00:00
|
|
|
inherit (mirage-flow) version useDune2 src;
|
2020-04-13 14:51:58 +01:00
|
|
|
|
2021-07-06 20:50:53 +01:00
|
|
|
# Make tests compatible with alcotest 1.4.0
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace test/test.ml --replace 'Fmt.kstrf Alcotest.fail' 'Fmt.kstrf (fun s -> Alcotest.fail s)'
|
|
|
|
'';
|
|
|
|
|
2020-04-13 14:51:58 +01:00
|
|
|
propagatedBuildInputs = [ fmt logs mirage-flow ocaml_lwt cstruct ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ alcotest mirage-flow-combinators ];
|
|
|
|
|
|
|
|
meta = mirage-flow.meta // {
|
|
|
|
description = "Flow implementations and combinators for MirageOS on Unix";
|
|
|
|
};
|
|
|
|
}
|