srt: backport patch for CMake 4

This commit is contained in:
Emily
2025-09-19 16:29:10 +01:00
parent f9a2bc625e
commit 3aea3ebccb
+10 -1
View File
@@ -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
];