nixpkgs/pkgs/development/ocaml-modules/ounit2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
782 B
Nix
Raw Normal View History

2022-10-25 14:23:31 +01:00
{ lib, ocaml, buildDunePackage, fetchurl, seq, stdlib-shims, ncurses }:
2020-04-13 15:42:14 +01:00
buildDunePackage rec {
minimumOCamlVersion = "4.04";
2020-04-13 15:42:14 +01:00
pname = "ounit2";
2022-10-25 14:23:31 +01:00
version = "2.2.6";
2020-04-13 15:42:14 +01:00
2021-02-16 17:04:54 +00:00
useDune2 = lib.versionAtLeast ocaml.version "4.08";
2020-04-13 15:42:14 +01:00
src = fetchurl {
2022-10-25 14:23:31 +01:00
url = "https://github.com/gildor478/ounit/releases/download/v${version}/ounit-${version}.tbz";
sha256 = "sha256-BpD7Hg6QoY7tXDVms8wYJdmLDox9UbtrhGyVxFphWRM=";
2020-04-13 15:42:14 +01:00
};
2022-10-25 14:23:31 +01:00
propagatedBuildInputs = [ seq stdlib-shims ];
2020-04-13 15:42:14 +01:00
doCheck = true;
checkInputs = lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
2020-04-13 15:42:14 +01:00
meta = with lib; {
homepage = "https://github.com/gildor478/ounit";
description = "A unit test framework for OCaml";
license = licenses.mit;
maintainers = with maintainers; [ sternenseemann ];
};
}