depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ounit2/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

27 lines
782 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;
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 ];
};
}