2022-10-25 14:23:31 +01:00
|
|
|
{ lib, ocaml, buildDunePackage, fetchurl, seq, stdlib-shims, ncurses }:
|
2020-04-13 15:42:14 +01:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-07-12 18:46:44 +01:00
|
|
|
minimumOCamlVersion = "4.04";
|
2020-04-13 15:42:14 +01:00
|
|
|
|
|
|
|
pname = "ounit2";
|
2022-10-25 14:23:31 +01:00
|
|
|
version = "2.2.6";
|
2020-04-13 15:42:14 +01:00
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
|
2020-04-13 15:42:14 +01:00
|
|
|
src = fetchurl {
|
2022-10-25 14:23:31 +01:00
|
|
|
url = "https://github.com/gildor478/ounit/releases/download/v${version}/ounit-${version}.tbz";
|
|
|
|
sha256 = "sha256-BpD7Hg6QoY7tXDVms8wYJdmLDox9UbtrhGyVxFphWRM=";
|
2020-04-13 15:42:14 +01:00
|
|
|
};
|
|
|
|
|
2022-10-25 14:23:31 +01:00
|
|
|
propagatedBuildInputs = [ seq stdlib-shims ];
|
2020-04-13 15:42:14 +01:00
|
|
|
|
2020-12-20 16:47:04 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkInputs = lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
|
|
|
|
|
2020-04-13 15:42:14 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/gildor478/ounit";
|
|
|
|
description = "A unit test framework for OCaml";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|