diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-02-08 06:46:34 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-02-08 07:01:45 +0100 |
commit | 4c287d419654524162f8f1cfa3ebfbb2beeb24ae (patch) | |
tree | 6d671e153bb8aa74f3bc09fd21d73d4164e968bd /pkgs/development/ocaml-modules/rresult | |
parent | d9b65903b47354d502e84451952a9c14a92715a6 (diff) |
ocamlPackages.rresult: disable for OCaml < 4.07
Diffstat (limited to 'pkgs/development/ocaml-modules/rresult')
-rw-r--r-- | pkgs/development/ocaml-modules/rresult/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/rresult/default.nix b/pkgs/development/ocaml-modules/rresult/default.nix index 3184e460a9ac9..0c1081159ede6 100644 --- a/pkgs/development/ocaml-modules/rresult/default.nix +++ b/pkgs/development/ocaml-modules/rresult/default.nix @@ -1,5 +1,8 @@ { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }: +lib.throwIfNot (lib.versionAtLeast ocaml.version "4.07") + "rresult is not available for OCaml ${ocaml.version}" + stdenv.mkDerivation rec { pname = "ocaml${ocaml.version}-rresult"; version = "0.7.0"; |