diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-11-09 20:41:22 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-11-09 20:41:22 +0100 |
commit | d6c30bbf704122ac71f29b5db4a707e5948a81fb (patch) | |
tree | 407c2d7549476fd1bad7a52708156923d209aabc /pkgs/development/ocaml-modules/bisect_ppx | |
parent | 15b6e9efd4f4f7a2f0d530f102edd2f07f787d78 (diff) |
ppxlib: default to 0.28.0 for OCaml ≥ 4.11 only
Diffstat (limited to 'pkgs/development/ocaml-modules/bisect_ppx')
-rw-r--r-- | pkgs/development/ocaml-modules/bisect_ppx/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/bisect_ppx/default.nix b/pkgs/development/ocaml-modules/bisect_ppx/default.nix index 6f54163a40fa1..4ecfea79e155f 100644 --- a/pkgs/development/ocaml-modules/bisect_ppx/default.nix +++ b/pkgs/development/ocaml-modules/bisect_ppx/default.nix @@ -11,7 +11,7 @@ buildDunePackage rec { sha256 = "sha256-pOeeSxzUF1jXQjA71atSZALdgQ2NB9qpKo5iaDnPwhQ="; }; - patches = [ + patches = lib.optionals (lib.versionAtLeast ppxlib.version "0.26.0") [ # Ppxlib >= 0.26.0 compatibility # remove when a new version is released (fetchpatch { @@ -26,8 +26,7 @@ buildDunePackage rec { }) ]; - minimumOCamlVersion = "4.08"; - useDune2 = true; + minimalOCamlVersion = "4.08"; buildInputs = [ cmdliner |