mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 05:23:16 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
28 lines
788 B
Nix
28 lines
788 B
Nix
{ lib, ocaml, buildDunePackage, fetchurl, seq, stdlib-shims, ncurses }:
|
|
|
|
buildDunePackage rec {
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
pname = "ounit2";
|
|
version = "2.2.6";
|
|
|
|
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/gildor478/ounit/releases/download/v${version}/ounit-${version}.tbz";
|
|
sha256 = "sha256-BpD7Hg6QoY7tXDVms8wYJdmLDox9UbtrhGyVxFphWRM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ seq stdlib-shims ];
|
|
|
|
doCheck = true;
|
|
nativeCheckInputs = 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 ];
|
|
};
|
|
}
|