librdf_raptor2: fix build with CMake 4

Co-authored-by: K900 <me@0upti.me>
This commit is contained in:
Emily
2025-09-19 16:29:10 +01:00
co-authored by K900
parent 5b77b6dbba
commit 6be9bf1bd8
@@ -54,6 +54,16 @@ stdenv.mkDerivation rec {
libxslt
];
# Fix the build with CMake 4.
#
# See: <https://github.com/dajobe/raptor/issues/75>
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";