From d7e922a9b10a38a6eaddb4b14689c02ce5085246 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Tue, 21 Oct 2025 13:05:04 -0300 Subject: [PATCH] kcp: fix build with cmake4 --- pkgs/by-name/kc/kcp/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/kc/kcp/package.nix b/pkgs/by-name/kc/kcp/package.nix index b939e335718e..e2733a5c925b 100644 --- a/pkgs/by-name/kc/kcp/package.nix +++ b/pkgs/by-name/kc/kcp/package.nix @@ -18,6 +18,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)" + ''; + meta = with lib; { description = "Fast and Reliable ARQ Protocol"; homepage = "https://github.com/skywind3000/kcp";