From b206de3bfcdad680160c3ebaa69f99b67429c7a5 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 5 Jun 2024 06:56:29 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.ppx=5Fstubs:=20disable=20for=20OC?= =?UTF-8?q?aml=20=E2=89=A5=205.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/ppx_cstubs/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/ocaml-modules/ppx_cstubs/default.nix b/pkgs/development/ocaml-modules/ppx_cstubs/default.nix index 7cf1a0d869e3..189efc3a675d 100644 --- a/pkgs/development/ocaml-modules/ppx_cstubs/default.nix +++ b/pkgs/development/ocaml-modules/ppx_cstubs/default.nix @@ -1,4 +1,5 @@ { lib +, ocaml , fetchFromGitHub , buildDunePackage , bigarray-compat @@ -12,6 +13,9 @@ , findlib }: +lib.throwIf (lib.versionAtLeast ocaml.version "5.2") + "ppx_cstubs is not available for OCaml ${ocaml.version}" + buildDunePackage rec { pname = "ppx_cstubs"; version = "0.7.0";