From 09c1d496d9cbf3dfdc97aa8fcef395ebcbc3d1fa Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 5 Jun 2023 07:41:51 +0200 Subject: [PATCH] ocamlPackages.qtest: fix for OCaml 5.0 --- pkgs/development/ocaml-modules/qtest/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/qtest/default.nix b/pkgs/development/ocaml-modules/qtest/default.nix index ea0237201dc1..982e1ed92472 100644 --- a/pkgs/development/ocaml-modules/qtest/default.nix +++ b/pkgs/development/ocaml-modules/qtest/default.nix @@ -4,8 +4,6 @@ buildDunePackage rec { pname = "qtest"; version = "2.11.2"; - duneVersion = "3"; - src = fetchFromGitHub { owner = "vincent-hugot"; repo = pname; @@ -13,6 +11,12 @@ buildDunePackage rec { sha256 = "sha256-VLY8+Nu6md0szW4RVxTFwlSQ9kyrgUqf7wQEA6GW8BE="; }; + preBuild = '' + substituteInPlace src/dune \ + --replace "(libraries bytes)" "" \ + --replace "libraries qcheck ounit2 bytes" "libraries qcheck ounit2" + ''; + propagatedBuildInputs = [ qcheck ]; meta = {