From 2991fa182df8cf95f03a7265e6e086aa385152bd Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 16 Mar 2026 07:02:33 +0100 Subject: [PATCH] ocamlPackages.landmarks-ppx: unbreak --- pkgs/development/ocaml-modules/landmarks-ppx/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"; }; }