ocamlPackages.ounit2: fix tests with OCaml < 4.07
This commit is contained in:
parent
6de7b51edd
commit
b126f231af
|
@ -1,22 +1,22 @@
|
|||
{ lib, ocaml, buildDunePackage, fetchurl, seq, stdlib-shims, ncurses }:
|
||||
|
||||
buildDunePackage rec {
|
||||
minimumOCamlVersion = "4.04";
|
||||
minimalOCamlVersion = "4.04";
|
||||
|
||||
pname = "ounit2";
|
||||
version = "2.2.6";
|
||||
|
||||
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
||||
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";
|
||||
sha256 = "sha256-BpD7Hg6QoY7tXDVms8wYJdmLDox9UbtrhGyVxFphWRM=";
|
||||
hash = "sha256-BpD7Hg6QoY7tXDVms8wYJdmLDox9UbtrhGyVxFphWRM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ seq stdlib-shims ];
|
||||
|
||||
doCheck = true;
|
||||
nativeCheckInputs = lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
|
||||
checkInputs = lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/gildor478/ounit";
|
||||
|
|
Loading…
Reference in a new issue