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 {
|
2023-02-09 11:40:11 +00:00
|
|
|
minimalOCamlVersion = "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
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
duneVersion = if lib.versionAtLeast ocaml.version "4.08" then "2" else "1";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
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";
|
2023-02-09 11:40:11 +00:00
|
|
|
hash = "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-09 11:40:11 +00:00
|
|
|
checkInputs = 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 ];
|
|
|
|
};
|
|
|
|
}
|