2020-04-24 23:36:52 +00:00
|
|
|
{ buildDunePackage, fmt, logs, mirage-flow, ocaml_lwt, cstruct
|
2023-02-09 11:40:11 +00:00
|
|
|
, alcotest, mirage-flow-combinators
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "mirage-flow-unix";
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
inherit (mirage-flow) version src;
|
|
|
|
|
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00: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-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ fmt logs mirage-flow ocaml_lwt cstruct ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest mirage-flow-combinators ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = mirage-flow.meta // {
|
|
|
|
description = "Flow implementations and combinators for MirageOS on Unix";
|
|
|
|
};
|
|
|
|
}
|