diff --git a/pkgs/development/ocaml-modules/ppx_blob/default.nix b/pkgs/development/ocaml-modules/ppx_blob/default.nix index cc106b70f42..d7d662e74a5 100644 --- a/pkgs/development/ocaml-modules/ppx_blob/default.nix +++ b/pkgs/development/ocaml-modules/ppx_blob/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, buildDunePackage, alcotest, ocaml-migrate-parsetree }: +{ lib, fetchurl, buildDunePackage, ocaml, alcotest, ocaml-migrate-parsetree }: buildDunePackage rec { pname = "ppx_blob"; @@ -11,7 +11,7 @@ buildDunePackage rec { checkInputs = lib.optional doCheck alcotest; buildInputs = [ ocaml-migrate-parsetree ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.03"; meta = with lib; { homepage = "https://github.com/johnwhitington/ppx_blob";