summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/mirage-channel
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2021-07-06 21:50:50 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2021-07-09 08:23:04 +0200
commit9b064d75d0eae614d0f5bbf087e40e918296c8cf (patch)
treeba4ef581e199adf57b5c3005211213e5d5355dbb /pkgs/development/ocaml-modules/mirage-channel
parent07e185c5a8de73df62fa87f6210683e31c51c448 (diff)
downloadnixpkgs-9b064d75d0eae614d0f5bbf087e40e918296c8cf.tar
nixpkgs-9b064d75d0eae614d0f5bbf087e40e918296c8cf.tar.gz
nixpkgs-9b064d75d0eae614d0f5bbf087e40e918296c8cf.tar.bz2
nixpkgs-9b064d75d0eae614d0f5bbf087e40e918296c8cf.tar.lz
nixpkgs-9b064d75d0eae614d0f5bbf087e40e918296c8cf.tar.xz
nixpkgs-9b064d75d0eae614d0f5bbf087e40e918296c8cf.tar.zst
nixpkgs-9b064d75d0eae614d0f5bbf087e40e918296c8cf.zip
ocamlPackages.mirage-channel: fix tests with alcotest 1.4.0
Diffstat (limited to 'pkgs/development/ocaml-modules/mirage-channel')
-rw-r--r--pkgs/development/ocaml-modules/mirage-channel/default.nix5
1 files changed, 5 insertions, 0 deletions
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;