about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/mirage-flow/unix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/mirage-flow/unix.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/mirage-flow/unix.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/mirage-flow/unix.nix b/nixpkgs/pkgs/development/ocaml-modules/mirage-flow/unix.nix
index 3bd676b45fa0..0bd3e42ad37a 100644
--- a/nixpkgs/pkgs/development/ocaml-modules/mirage-flow/unix.nix
+++ b/nixpkgs/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;