Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
25 lines
654 B
Nix
25 lines
654 B
Nix
{ buildDunePackage, fmt, logs, mirage-flow, ocaml_lwt, cstruct
|
|
, alcotest, mirage-flow-combinators
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "mirage-flow-unix";
|
|
|
|
inherit (mirage-flow) version src;
|
|
|
|
duneVersion = "3";
|
|
|
|
# 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)'
|
|
'';
|
|
|
|
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";
|
|
};
|
|
}
|