diff --git a/pkgs/development/ocaml-modules/tcpip/default.nix b/pkgs/development/ocaml-modules/tcpip/default.nix index 4d9f97480ef2..53656f00572a 100644 --- a/pkgs/development/ocaml-modules/tcpip/default.nix +++ b/pkgs/development/ocaml-modules/tcpip/default.nix @@ -26,6 +26,14 @@ buildDunePackage rec { ./makefile-no-opam.patch ]; + # Make tests compatible with alcotest 1.4.0 + postPatch = '' + for p in common.ml test_tcp_options.ml + do + substituteInPlace test/$p --replace 'Fmt.kstrf Alcotest.fail' 'Fmt.kstrf (fun s -> Alcotest.fail s)' + done + ''; + nativeBuildInputs = [ bisect_ppx ppx_cstruct