From 9b064d75d0eae614d0f5bbf087e40e918296c8cf Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 6 Jul 2021 21:50:50 +0200 Subject: [PATCH] ocamlPackages.mirage-channel: fix tests with alcotest 1.4.0 --- pkgs/development/ocaml-modules/mirage-channel/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/ocaml-modules/mirage-channel/default.nix b/pkgs/development/ocaml-modules/mirage-channel/default.nix index 5b639e6fdd6..227e821e192 100644 --- a/pkgs/development/ocaml-modules/mirage-channel/default.nix +++ b/pkgs/development/ocaml-modules/mirage-channel/default.nix @@ -14,6 +14,11 @@ buildDunePackage rec { sha256 = "0wmb2zhiyp8n78xgcspcsyd19bhcml3kyli2caw3778wc1gyvfpc"; }; + # Make tests compatible with alcotest 1.4.0 + postPatch = '' + substituteInPlace test/test_channel.ml --replace 'Fmt.kstrf Alcotest.fail' 'Fmt.kstrf (fun s -> Alcotest.fail s)' + ''; + propagatedBuildInputs = [ cstruct logs lwt mirage-flow ]; doCheck = true;