From 7fddef376e31782ae8e7b41870d7db48cef3da53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Fri, 2 Oct 2020 03:58:20 +0200 Subject: [PATCH] gst_all_1.gst-plugins-bad: Add upstream patch to fix SRT usage --- pkgs/development/libraries/gstreamer/bad/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index 760936a85e8f..88c9f9a385a1 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -100,6 +100,16 @@ in stdenv.mkDerivation rec { patches = [ ./fix_pkgconfig_includedir.patch + # Fixes srt usage failing with + # Failed to open SRT: failed to set SRTO_LINGER (reason: Operation not supported: Bad parameters) + # see https://github.com/Haivision/srt/issues/1374 + # Remove when https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/commit/84f8dbd932029220ee86154dd85b241911ea3891 + # is shown as being in a release tag that nixpkgs uses. + (fetchpatch { + name = "gstreamer-srtobject-typecast-SRTO_LINGER-to-linger.patch"; + url = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/commit/84f8dbd932029220ee86154dd85b241911ea3891.patch"; + sha256 = "0596lvgi93sj3yn98grgmsrhnqhhq7fnjk91qi4xc6618fpqmp9x"; + }) ]; nativeBuildInputs = [