summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ounit2/default.nix
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2023-05-12 23:09:22 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2023-05-15 10:10:36 +0200
commitc81792a4571d5a6ba7a7f3d84cbc0e5dc5f16335 (patch)
tree12eb32d195c402ab0e770bbb7ee9934acd093b92 /pkgs/development/ocaml-modules/ounit2/default.nix
parentbc9afd16865cddb0f2f2be9f65741626779687f1 (diff)
downloadnixpkgs-c81792a4571d5a6ba7a7f3d84cbc0e5dc5f16335.tar
nixpkgs-c81792a4571d5a6ba7a7f3d84cbc0e5dc5f16335.tar.gz
nixpkgs-c81792a4571d5a6ba7a7f3d84cbc0e5dc5f16335.tar.bz2
nixpkgs-c81792a4571d5a6ba7a7f3d84cbc0e5dc5f16335.tar.lz
nixpkgs-c81792a4571d5a6ba7a7f3d84cbc0e5dc5f16335.tar.xz
nixpkgs-c81792a4571d5a6ba7a7f3d84cbc0e5dc5f16335.tar.zst
nixpkgs-c81792a4571d5a6ba7a7f3d84cbc0e5dc5f16335.zip
ocamlPackages.ounit2: disable for OCaml < 4.08
Diffstat (limited to 'pkgs/development/ocaml-modules/ounit2/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/ounit2/default.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/ounit2/default.nix b/pkgs/development/ocaml-modules/ounit2/default.nix
index e44bd5bb35a..756c6259e0a 100644
--- a/pkgs/development/ocaml-modules/ounit2/default.nix
+++ b/pkgs/development/ocaml-modules/ounit2/default.nix
@@ -1,7 +1,7 @@
 { lib, ocaml, buildDunePackage, fetchurl, seq, stdlib-shims, ncurses }:
 
-buildDunePackage (rec {
-  minimalOCamlVersion = "4.04";
+buildDunePackage rec {
+  minimalOCamlVersion = "4.08";
 
   pname = "ounit2";
   version = "2.2.6";
@@ -14,7 +14,6 @@ buildDunePackage (rec {
   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";
@@ -22,6 +21,4 @@ buildDunePackage (rec {
     license = licenses.mit;
     maintainers = with maintainers; [ sternenseemann ];
   };
-} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") {
-  duneVersion = "1";
-})
+}