ebook_tools: fix build with CMake 4

Not sure how to feel about Okular depending on this library that
hasn’t been touched since 2012 for EPUB support.

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 9f77ea85a7
commit c32cb51778
+10
View File
@@ -17,6 +17,16 @@ stdenv.mkDerivation rec {
sha256 = "1bi7wsz3p5slb43kj7lgb3r6lb91lvb6ldi556k4y50ix6b5khyb";
};
# Fix the build with CMake 4.
#
# See: <https://sourceforge.net/p/ebook-tools/bugs/14/>
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail \
'cmake_minimum_required(VERSION 2.4.0)' \
'cmake_minimum_required(VERSION 3.10)'
'';
nativeBuildInputs = [
cmake
pkg-config