From 552cc19b4e6f66b02aad0c8a243aee50a1970cbf Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Thu, 23 Oct 2025 21:22:18 -0300 Subject: [PATCH] rcon: fix build with cmake4 --- pkgs/by-name/rc/rcon/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/rc/rcon/package.nix b/pkgs/by-name/rc/rcon/package.nix index 48fd4373a3f8..813c63b646e0 100644 --- a/pkgs/by-name/rc/rcon/package.nix +++ b/pkgs/by-name/rc/rcon/package.nix @@ -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";