From 3aea3ebccbe0d307df0f7325d40678fe1e3bf35b Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 10 Sep 2025 02:32:16 +0100 Subject: [PATCH] srt: backport patch for CMake 4 --- pkgs/by-name/sr/srt/package.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sr/srt/package.nix b/pkgs/by-name/sr/srt/package.nix index d18eb371675b..f406fa154543 100644 --- a/pkgs/by-name/sr/srt/package.nix +++ b/pkgs/by-name/sr/srt/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, openssl, windows, @@ -27,7 +28,15 @@ stdenv.mkDerivation rec { windows.pthreads ]; - patches = lib.optionals stdenv.hostPlatform.isMinGW [ + patches = [ + # Fix the build with CMake 4. + (fetchpatch { + name = "srt-fix-cmake-4.patch"; + url = "https://github.com/Haivision/srt/commit/0def1b1a1094fc57752f241250e9a1aed71bbffd.patch"; + hash = "sha256-dnBGNut+I9trkQzr81Wo36O2Pt7d2gsjA1buJBegPMM="; + }) + ] + ++ lib.optionals stdenv.hostPlatform.isMinGW [ ./no-msvc-compat-headers.patch ];