obs-studio: add flag for decklink support

This commit is contained in:
hexchen 2023-08-04 12:50:44 +00:00 committed by Jörg Thalheim
parent 08f93ba684
commit 084dfe801e

View File

@ -46,6 +46,8 @@
, nlohmann_json
, websocketpp
, asio
, decklinkSupport ? false
, blackmagic-desktop-video
}:
let
@ -134,9 +136,17 @@ stdenv.mkDerivation rec {
];
dontWrapGApps = true;
preFixup = ''
preFixup = let
wrapperLibraries = [
xorg.libX11
libvlc
libGL
] ++ optionals decklinkSupport [
blackmagic-desktop-video
];
in ''
qtWrapperArgs+=(
--prefix LD_LIBRARY_PATH : "$out/lib:${lib.makeLibraryPath [ xorg.libX11 libvlc libGL ]}"
--prefix LD_LIBRARY_PATH : "$out/lib:${lib.makeLibraryPath wrapperLibraries}"
''${gappsWrapperArgs[@]}
)
'';