wb32-dfu-updater: fix broken CMake 4 build

Co-authored-by: Yohann Boniface <edhyjox@gmail.com>

Co-authored-by: Grimmauld <soeren@benjos.de>
This commit is contained in:
Alwin
2025-10-07 21:06:03 +02:00
committed by Alwin
parent bad3e00dba
commit d32084bf5c
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.10)
set(CMAKE_C_STANDARD 99)

View File

@@ -17,6 +17,10 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-DKsDVO00JFhR9hIZksFVJLRwC6PF9LCRpf++QywFO2w=";
};
patches = [
./fix-cmake4-build.patch # Temporary fix for https://github.com/WestberryTech/wb32-dfu-updater/pull/19
];
nativeBuildInputs = [ cmake ];
buildInputs = [ libusb1 ];