mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 22:21:26 +00:00
ocamlPackages.functory: disable for OCaml ≥ 5.0
This commit is contained in:
parent
f3fca40fd1
commit
6cd24b0187
@ -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 New Issue
Block a user