From 2c198eddd602e141962c4d3e98729092821d738c Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Thu, 16 Oct 2025 23:58:59 +0200 Subject: [PATCH] udpreplay: fix build with cmake4 --- pkgs/by-name/ud/udpreplay/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/ud/udpreplay/package.nix b/pkgs/by-name/ud/udpreplay/package.nix index 3367597e688c..766b180082f8 100644 --- a/pkgs/by-name/ud/udpreplay/package.nix +++ b/pkgs/by-name/ud/udpreplay/package.nix @@ -3,6 +3,7 @@ cmake, libpcap, fetchFromGitHub, + fetchpatch, lib, }: stdenv.mkDerivation rec { @@ -17,6 +18,14 @@ stdenv.mkDerivation rec { hash = "sha256-kF9a3pjQbFKf25NKyK7uSq0AAO6JK7QeChLhm9Z3wEA="; }; + patches = [ + # Increase minimum CMake required to 3.5 + (fetchpatch { + url = "https://github.com/rigtorp/udpreplay/commit/52bd71d6c004cd69899dbe8d529f3ce0a8154e7f.patch?full_index=1"; + hash = "sha256-nWtC77SNpNDDkEli5loc8eVJ1ll0AdgEKQ4pV84JoSk="; + }) + ]; + meta = with lib; { description = "Replay UDP packets from a pcap file"; longDescription = ''