discord-rpc: fix build with CMake 4

Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
Marcin Serwin
2025-10-06 18:36:46 +02:00
parent 2b78ecc45e
commit d64d734643

View File

@@ -41,6 +41,12 @@ stdenv.mkDerivation rec {
})
];
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
"cmake_minimum_required (VERSION 3.2.0)" \
"cmake_minimum_required (VERSION 3.10.0)"
'';
meta = with lib; {
description = "Official library to interface with the Discord client";
homepage = "https://github.com/discordapp/discord-rpc";