From c32cb5177811edd5097c4e84559339727b4bcfe1 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 16 Sep 2025 04:20:56 +0100 Subject: [PATCH] ebook_tools: fix build with CMake 4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkgs/by-name/eb/ebook_tools/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/eb/ebook_tools/package.nix b/pkgs/by-name/eb/ebook_tools/package.nix index 8f09811d83fb..63941366f0ca 100644 --- a/pkgs/by-name/eb/ebook_tools/package.nix +++ b/pkgs/by-name/eb/ebook_tools/package.nix @@ -17,6 +17,16 @@ stdenv.mkDerivation rec { sha256 = "1bi7wsz3p5slb43kj7lgb3r6lb91lvb6ldi556k4y50ix6b5khyb"; }; + # Fix the build with CMake 4. + # + # See: + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail \ + 'cmake_minimum_required(VERSION 2.4.0)' \ + 'cmake_minimum_required(VERSION 3.10)' + ''; + nativeBuildInputs = [ cmake pkg-config