imgbrd-grabber: fix build with CMake 4 (#450523)
This commit is contained in:
20
pkgs/by-name/im/imgbrd-grabber/cmake4-compat.patch
Normal file
20
pkgs/by-name/im/imgbrd-grabber/cmake4-compat.patch
Normal 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)
|
||||
|
||||
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user