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