rcon: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-23 21:22:18 -03:00
parent 113dc6bea4
commit 552cc19b4e
+7
View File
@@ -33,6 +33,13 @@ stdenv.mkDerivation rec {
pcre
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)"
substituteInPlace tests/CMakeLists.txt \
--replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)"
'';
meta = with lib; {
homepage = "https://github.com/n0la/rcon";
description = "Source RCON client for command line";