ocamlPackages.functory: disable for OCaml ≥ 5.0
This commit is contained in:
parent
f3fca40fd1
commit
6cd24b0187
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue