ocamlPackages.qtest: fix for OCaml 5.0

This commit is contained in:
Vincent Laporte 2023-06-05 07:41:51 +02:00 committed by Vincent Laporte
parent b29bccf157
commit 09c1d496d9

View File

@ -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 = {