diff --git a/pkgs/by-name/ju/julius/cmake4.patch b/pkgs/by-name/ju/julius/cmake4.patch new file mode 100644 index 000000000000..40d58f3514fc --- /dev/null +++ b/pkgs/by-name/ju/julius/cmake4.patch @@ -0,0 +1,10 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b725e9a..f5ffa5f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.10) + include(CMakeDependentOption) + + set(TARGET_PLATFORM "default" CACHE STRING "Platform to cross-compile for. Options: vita switch android ios emscripten. Leave blank for no cross compilation") diff --git a/pkgs/by-name/ju/julius/package.nix b/pkgs/by-name/ju/julius/package.nix index 9a9147c04f78..be56dc23ea97 100644 --- a/pkgs/by-name/ju/julius/package.nix +++ b/pkgs/by-name/ju/julius/package.nix @@ -22,6 +22,8 @@ stdenv.mkDerivation rec { }; patches = [ + # This fixes the build with cmake 4 + ./cmake4.patch # This fixes the darwin bundle generation, sets min. deployment version # and patches SDL2_mixer include ./darwin-fixes.patch