2022-11-04 12:27:35 +00:00
|
|
|
{ lib, ocaml, buildDunePackage, fetchurl, seq, 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";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "2.2.6";
|
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 {
|
2022-11-04 12:27:35 +00:00
|
|
|
url = "https://github.com/gildor478/ounit/releases/download/v${version}/ounit-${version}.tbz";
|
|
|
|
sha256 = "sha256-BpD7Hg6QoY7tXDVms8wYJdmLDox9UbtrhGyVxFphWRM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
propagatedBuildInputs = [ seq stdlib-shims ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-26 04:20:00 +00:00
|
|
|
doCheck = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
|
2020-12-26 04:20:00 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|