about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/ounit2/default.nix
blob: 0b68609584d4afd19d9424cafd4c31edadfec1d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, ocaml, buildDunePackage, fetchurl, stdlib-shims, ncurses }:

buildDunePackage rec {
  minimumOCamlVersion = "4.04";

  pname = "ounit2";
  version = "2.2.4";

  useDune2 = lib.versionAtLeast ocaml.version "4.08";

  src = fetchurl {
    url = "https://github.com/gildor478/ounit/releases/download/v${version}/ounit-v${version}.tbz";
    sha256 = "0i9kiqbf2dp12c4qcvbn4abdpdp6h4g5z54ycsh0q8jpv6jnkh5m";
  };

  propagatedBuildInputs = [ 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 ];
  };
}