summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/mirage-flow/unix.nix
blob: 0bd3e42ad37a87e93aa19ed817f4abe56cf85aaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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";
  };
}