1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 qcheck,
6}:
7
8buildDunePackage rec {
9 pname = "qtest";
10 version = "2.11.2";
11
12 src = fetchFromGitHub {
13 owner = "vincent-hugot";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "sha256-VLY8+Nu6md0szW4RVxTFwlSQ9kyrgUqf7wQEA6GW8BE=";
17 };
18
19 preBuild = ''
20 substituteInPlace src/dune \
21 --replace "(libraries bytes)" "" \
22 --replace "libraries qcheck ounit2 bytes" "libraries qcheck ounit2"
23 '';
24
25 propagatedBuildInputs = [ qcheck ];
26
27 meta = {
28 description = "Inline (Unit) Tests for OCaml";
29 mainProgram = "qtest";
30 inherit (src.meta) homepage;
31 maintainers = with lib.maintainers; [ vbgl ];
32 license = lib.licenses.gpl3;
33 };
34}