From b802bf0b9518e53d5ae676f9019be578e50f4f38 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 14 Sep 2023 18:46:28 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.ocaml-migrate-parsetree-2:=20disa?= =?UTF-8?q?ble=20for=20OCaml=20=E2=89=A5=205.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ocaml-modules/ocaml-migrate-parsetree/2.x.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/2.x.nix b/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/2.x.nix index 0d127d791524..1ba2976bcc54 100644 --- a/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/2.x.nix +++ b/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/2.x.nix @@ -1,4 +1,7 @@ -{ lib, fetchurl, buildDunePackage }: +{ lib, fetchurl, buildDunePackage, ocaml }: + +lib.throwIf (lib.versionAtLeast ocaml.version "5.1") + "ocaml-migrate-parsetree is not available for OCaml ${ocaml.version}" buildDunePackage rec { pname = "ocaml-migrate-parsetree";