2020-12-26 04:20:00 +00:00
|
|
|
{ lib, ocaml, buildDunePackage, fetchurl, stdlib-shims, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-08-20 17:08:02 +00:00
|
|
|
minimumOCamlVersion = "4.04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
pname = "ounit2";
|
2020-12-26 04:20:00 +00:00
|
|
|
version = "2.2.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/gildor478/ounit/releases/download/v${version}/ounit-v${version}.tbz";
|
2020-12-26 04:20:00 +00:00
|
|
|
sha256 = "0i9kiqbf2dp12c4qcvbn4abdpdp6h4g5z54ycsh0q8jpv6jnkh5m";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ stdlib-shims ];
|
|
|
|
|
2020-12-26 04:20:00 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkInputs = lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/gildor478/ounit";
|
|
|
|
description = "A unit test framework for OCaml";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|