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 }:
|
{ lib, stdenv, fetchurl, ocaml, findlib }:
|
||||||
|
|
||||||
assert lib.versionAtLeast (lib.getVersion ocaml) "3.11";
|
|
||||||
|
|
||||||
let param =
|
let param =
|
||||||
if lib.versionAtLeast ocaml.version "4.02" then {
|
if lib.versionAtLeast ocaml.version "4.02" then {
|
||||||
version = "0.6";
|
version = "0.6";
|
||||||
@ -12,6 +10,9 @@ let param =
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
|
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
|
||||||
|
"functory is not available for OCaml ${ocaml.version}"
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "ocaml${ocaml.version}-functory";
|
pname = "ocaml${ocaml.version}-functory";
|
||||||
inherit (param) version;
|
inherit (param) version;
|
||||||
|
Loading…
Reference in New Issue
Block a user