scantailor-universal: fix build with cmake4

This commit is contained in:
Sigmanificient
2025-10-14 09:18:42 +02:00
parent 8ccd96abad
commit 836d7ab2e4

View File

@@ -2,6 +2,7 @@
lib, lib,
stdenv, stdenv,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
cmake, cmake,
libsForQt5, libsForQt5,
zlib, zlib,
@@ -25,6 +26,20 @@ stdenv.mkDerivation rec {
hash = "sha256-n8NbokK+U0FAuYXtjRJcxlI1XAmI4hk5zV3sF86hB/s="; hash = "sha256-n8NbokK+U0FAuYXtjRJcxlI1XAmI4hk5zV3sF86hB/s=";
}; };
patches = [
# Bump CMAKE_MINIMUM_REQUIRED
(fetchpatch {
url = "https://github.com/trufanov-nok/scantailor-universal/commit/f90b1c6bb2954ca5c4d0c5b310f359c522fe538c.patch?full_index=1";
hash = "sha256-c/mynpM4XNbQ6TcxzZvwwujnfwwA1TPogNU9393gcY4=";
})
# Remove outdated CMP0043 policy
(fetchpatch {
url = "https://github.com/trufanov-nok/scantailor-universal/commit/248fdf0fc2dc014d76d4ec9e27a7ad340ff7aaf5.patch?full_index=1";
hash = "sha256-xK0hNr6YHgMK4fghc07CTRwcsizTsnGSdDwqcUf9wsY=";
})
];
buildInputs = [ buildInputs = [
libsForQt5.qtbase libsForQt5.qtbase
zlib zlib