0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

Merge pull request #214801 from vbgl/ocaml-ounit2-needs-ncurses

ocamlPackages.ounit2: fix tests with OCaml < 4.07
This commit is contained in:
superherointj 2023-02-05 18:54:41 -03:00 committed by GitHub
commit 1a29a7aef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";