diff --git a/pkgs/by-name/sd/sdrpp/cmake4.patch b/pkgs/by-name/sd/sdrpp/cmake4.patch new file mode 100644 index 000000000000..c40373d99f6b --- /dev/null +++ b/pkgs/by-name/sd/sdrpp/cmake4.patch @@ -0,0 +1,27 @@ +diff --git a/core/libcorrect/CMakeLists.txt b/core/libcorrect/CMakeLists.txt +index 7fce281d..b709255f 100644 +--- a/core/libcorrect/CMakeLists.txt ++++ b/core/libcorrect/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.13) + project(Correct C) + include(CheckLibraryExists) + include(CheckIncludeFiles) +diff --git a/misc_modules/discord_integration/discord-rpc/CMakeLists.txt b/misc_modules/discord_integration/discord-rpc/CMakeLists.txt +index 1dc1c913..e9924677 100644 +--- a/misc_modules/discord_integration/discord-rpc/CMakeLists.txt ++++ b/misc_modules/discord_integration/discord-rpc/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 3.2.0) ++cmake_minimum_required (VERSION 3.13) + project (DiscordRPC) + + include(GNUInstallDirs) +@@ -11,4 +11,4 @@ file(GLOB_RECURSE ALL_SOURCE_FILES + + # add subdirs + +-add_subdirectory(src) +\ No newline at end of file ++add_subdirectory(src) diff --git a/pkgs/by-name/sd/sdrpp/package.nix b/pkgs/by-name/sd/sdrpp/package.nix index 50f4db7b9528..19bba205f0b5 100644 --- a/pkgs/by-name/sd/sdrpp/package.nix +++ b/pkgs/by-name/sd/sdrpp/package.nix @@ -83,7 +83,12 @@ stdenv.mkDerivation rec { hash = git_hash; }; - patches = [ ./runtime-prefix.patch ]; + patches = [ + ./runtime-prefix.patch + # CMake 4 dropped support of versions lower than 3.5, + # versions lower than 3.10 are deprecated. + ./cmake4.patch + ]; postPatch = '' substituteInPlace CMakeLists.txt \