diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-11-06 06:10:38 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2023-11-13 05:06:51 +0100 |
commit | 6cd24b0187e9a3546c556c5a332aa92039da3567 (patch) | |
tree | 88d3e366d9b9eed40bcea032574a2dacfc4f6047 | |
parent | f3fca40fd1088d8bd3fe01772ae96148a5339dbc (diff) |
ocamlPackages.functory: disable for OCaml ≥ 5.0
-rw-r--r-- | pkgs/development/ocaml-modules/functory/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/functory/default.nix b/pkgs/development/ocaml-modules/functory/default.nix index 3c56aaf0a0ad..8a960dedcb5c 100644 --- a/pkgs/development/ocaml-modules/functory/default.nix +++ b/pkgs/development/ocaml-modules/functory/default.nix @@ -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; |