From 07e185c5a8de73df62fa87f6210683e31c51c448 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 6 Jul 2021 21:50:44 +0200 Subject: [PATCH] ocamlPackages.mirage-block-ramdisk: fix tests with alcotest 1.4.0 --- .../ocaml-modules/mirage-block-ramdisk/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix b/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix index 1dcc769abb6..7e8ebba73eb 100644 --- a/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix +++ b/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix @@ -13,6 +13,11 @@ buildDunePackage rec { sha256 = "cc0e814fd54efe7a5b7a8c5eb1c04e2dece751b7d8dee2d95908a0768896e8af"; }; + # Make tests compatible with alcotest 1.4.0 + postPatch = '' + substituteInPlace test/tests.ml --replace 'Fmt.kstrf Alcotest.fail' 'Fmt.kstrf (fun s -> Alcotest.fail s)' + ''; + minimumOCamlVersion = "4.06"; propagatedBuildInputs = [ io-page mirage-block ];