about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2021-07-06 21:50:44 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2021-07-09 08:23:04 +0200
commit07e185c5a8de73df62fa87f6210683e31c51c448 (patch)
tree46cb69145df34cea4b86001b95d4fb38d5a55515 /pkgs
parent53072cc0666112eebe9bc5d18dd46abb12f0dcbe (diff)
ocamlPackages.mirage-block-ramdisk: fix tests with alcotest 1.4.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix b/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix
index 1dcc769abb679..7e8ebba73eb5d 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 ];