diff --git a/pkgs/development/ocaml-modules/stdcompat/default.nix b/pkgs/development/ocaml-modules/stdcompat/default.nix index 33e93967e192..23eeca421f5e 100644 --- a/pkgs/development/ocaml-modules/stdcompat/default.nix +++ b/pkgs/development/ocaml-modules/stdcompat/default.nix @@ -1,8 +1,12 @@ { buildDunePackage +, ocaml , lib , fetchurl }: +lib.throwIf (lib.versionAtLeast ocaml.version "5.2") + "stdcompat is not available for OCaml ${ocaml.version}" + buildDunePackage rec { pname = "stdcompat"; version = "19";