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";