4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
27 lines
804 B
Nix
27 lines
804 B
Nix
{ lib, ocaml, buildDunePackage, fetchurl, seq, stdlib-shims, ncurses }:
|
|
|
|
buildDunePackage rec {
|
|
minimalOCamlVersion = "4.04";
|
|
|
|
pname = "ounit2";
|
|
version = "2.2.6";
|
|
|
|
duneVersion = if lib.versionAtLeast ocaml.version "4.08" then "2" else "1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/gildor478/ounit/releases/download/v${version}/ounit-${version}.tbz";
|
|
hash = "sha256-BpD7Hg6QoY7tXDVms8wYJdmLDox9UbtrhGyVxFphWRM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ seq stdlib-shims ];
|
|
|
|
doCheck = true;
|
|
checkInputs = lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/gildor478/ounit";
|
|
description = "A unit test framework for OCaml";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
};
|
|
}
|