diff --git a/pkgs/development/ocaml-modules/landmarks-ppx/default.nix b/pkgs/development/ocaml-modules/landmarks-ppx/default.nix index 4d70169e2c4f..dedaee7e9c5c 100644 --- a/pkgs/development/ocaml-modules/landmarks-ppx/default.nix +++ b/pkgs/development/ocaml-modules/landmarks-ppx/default.nix @@ -1,6 +1,7 @@ { lib, buildDunePackage, + fetchpatch, ocaml, landmarks, ppxlib, @@ -11,6 +12,11 @@ buildDunePackage { inherit (landmarks) src version; + patches = lib.optional (lib.versionAtLeast ppxlib.version "0.36") (fetchpatch { + url = "https://github.com/LexiFi/landmarks/commit/367c229e3275a83f81343ba116374bb68abc9d83.patch"; + hash = "sha256-Qxue+++sNV6EHJGX1mbIeY2E2D5NuFpmIIBkTyvGvo8="; + }); + buildInputs = [ ppxlib ]; propagatedBuildInputs = [ landmarks ]; @@ -22,6 +28,5 @@ buildDunePackage { Automatically or semi-automatically instrument your code using landmarks library. ''; - broken = lib.versionAtLeast ppxlib.version "0.36"; }; }