diff --git a/pkgs/development/ocaml-modules/xtmpl/ppx.nix b/pkgs/development/ocaml-modules/xtmpl/ppx.nix index 3206c31bac17..749a83bb6201 100644 --- a/pkgs/development/ocaml-modules/xtmpl/ppx.nix +++ b/pkgs/development/ocaml-modules/xtmpl/ppx.nix @@ -9,6 +9,12 @@ buildDunePackage { inherit (xtmpl) src version; + # Fix for ppxlib ≥ 0.37 + postPatch = '' + substituteInPlace ppx/ppx_xtmpl.ml --replace-fail 'Parse.longident b' \ + 'Astlib.Longident.parse s' + ''; + buildInputs = [ ppxlib xtmpl