From 11c24ba9b3885c1f0c91ed3a8777664a4bc4f8b0 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 6 Jul 2021 21:50:53 +0200 Subject: [PATCH] ocamlPackages.mirage-flow-unix: fix tests with alcotest 1.4.0 --- pkgs/development/ocaml-modules/mirage-flow/unix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/ocaml-modules/mirage-flow/unix.nix b/pkgs/development/ocaml-modules/mirage-flow/unix.nix index 3bd676b45fa..0bd3e42ad37 100644 --- a/pkgs/development/ocaml-modules/mirage-flow/unix.nix +++ b/pkgs/development/ocaml-modules/mirage-flow/unix.nix @@ -6,6 +6,11 @@ buildDunePackage { 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;