imgbrd-grabber: fix build with CMake 4

This commit is contained in:
Alexis Williams
2025-10-09 18:39:38 -07:00
parent 3f65ac0801
commit a85ec3bdf6
2 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1111111..2222222 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.2)
+cmake_minimum_required(VERSION 3.10)
project(Grabber)
diff --git a/lib/vendor/lexbor/CMakeLists.txt b/lib/vendor/lexbor/CMakeLists.txt
index 1111111..2222222 100644
--- a/lib/vendor/lexbor/CMakeLists.txt
+++ b/lib/vendor/lexbor/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.10)
project(lexbor C)

View File

@@ -59,10 +59,10 @@ stdenv.mkDerivation (finalAttrs: {
patches = [
./fix-for-qt6.patch
./cmake4-compat.patch
];
postPatch = ''
# ensure the script uses the rsync package from nixpkgs
substituteInPlace ../scripts/package.sh --replace-fail "rsync" "${lib.getExe rsync}"