From 6be9bf1bd8f2595f3658b53e43fdff9078eff015 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 16 Sep 2025 16:19:12 +0100 Subject: [PATCH] librdf_raptor2: fix build with CMake 4 Co-authored-by: K900 --- pkgs/development/libraries/librdf/raptor2.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/libraries/librdf/raptor2.nix b/pkgs/development/libraries/librdf/raptor2.nix index baad5320b250..a8d63d13125a 100644 --- a/pkgs/development/libraries/librdf/raptor2.nix +++ b/pkgs/development/libraries/librdf/raptor2.nix @@ -54,6 +54,16 @@ stdenv.mkDerivation rec { libxslt ]; + # Fix the build with CMake 4. + # + # See: + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail \ + 'CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7)' \ + 'CMAKE_MINIMUM_REQUIRED(VERSION 3.10)' + ''; + meta = { description = "RDF Parser Toolkit"; mainProgram = "rapper";