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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user