diff --git a/pkgs/development/libraries/clucene-core/2.x.nix b/pkgs/development/libraries/clucene-core/2.x.nix index 5d4a7afdc565..d46ecdfb24ee 100644 --- a/pkgs/development/libraries/clucene-core/2.x.nix +++ b/pkgs/development/libraries/clucene-core/2.x.nix @@ -52,6 +52,12 @@ stdenv.mkDerivation rec { # required for darwin and linux-musl ./pthread-include.patch + + # cmake 4 support + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-cpp/clucene/files/clucene-2.3.3.4-cmake4.patch?id=e06df280c75b0f0803954338466e5278d777f984"; + hash = "sha256-e0u6J91bnuy24hIrSl+Ap5Xwds/nzzGiWpzskwaGx9o="; + }) ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ ./fix-darwin.patch