From 14a2f48bf233ba86ca02a3d7e7b4c63e0eb7b754 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 6 Jul 2021 21:51:00 +0200 Subject: [PATCH] ocamlPackages.tcpip: fix tests with alcotest 1.4.0 --- pkgs/development/ocaml-modules/tcpip/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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