depot/third_party/nixpkgs/pkgs/development/ocaml-modules/mirage-flow/unix.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

22 lines
641 B
Nix

{ buildDunePackage, fmt, logs, mirage-flow, ocaml_lwt, cstruct
, alcotest, mirage-flow-combinators }:
buildDunePackage {
pname = "mirage-flow-unix";
inherit (mirage-flow) version useDune2 src;
# 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";
};
}