diff --git a/pkgs/development/ocaml-modules/ocf/ppx.nix b/pkgs/development/ocaml-modules/ocf/ppx.nix index a01c36942ea9..891bde287a9d 100644 --- a/pkgs/development/ocaml-modules/ocf/ppx.nix +++ b/pkgs/development/ocaml-modules/ocf/ppx.nix @@ -1,4 +1,5 @@ { + fetchpatch, buildDunePackage, ocf, ppxlib, @@ -10,7 +11,14 @@ buildDunePackage { inherit (ocf) src version; - duneVersion = "3"; + patches = [ + # Support for ppxlib ≥ 0.37 + (fetchpatch { + url = "https://framagit.org/zoggy/ocf/-/commit/38b1f6420e5c01b3ea6b2fed99b6b62e4c848dc0.patch"; + hash = "sha256-GymTdK/dOYGianvNIKkl9OhBGW+4dX5TqAkQuEF5FmA="; + includes = [ "*.ml" ]; + }) + ]; buildInputs = [ ppxlib