From 4c287d419654524162f8f1cfa3ebfbb2beeb24ae Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 8 Feb 2023 06:46:34 +0100 Subject: [PATCH] ocamlPackages.rresult: disable for OCaml < 4.07 --- pkgs/development/ocaml-modules/rresult/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/ocaml-modules/rresult/default.nix b/pkgs/development/ocaml-modules/rresult/default.nix index 3184e460a9a..0c1081159ed 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";