ocamlPackages.functory: disable for OCaml ≥ 5.0

This commit is contained in:
Vincent Laporte 2023-11-06 06:10:38 +01:00 committed by Vincent Laporte
parent f3fca40fd1
commit 6cd24b0187

View file

@ -1,7 +1,5 @@
{ lib, stdenv, fetchurl, ocaml, findlib }:
assert lib.versionAtLeast (lib.getVersion ocaml) "3.11";
let param =
if lib.versionAtLeast ocaml.version "4.02" then {
version = "0.6";
@ -12,6 +10,9 @@ let param =
};
in
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
"functory is not available for OCaml ${ocaml.version}"
stdenv.mkDerivation {
pname = "ocaml${ocaml.version}-functory";
inherit (param) version;