obs-studio: fix decklink

This commit is contained in:
Mateusz Słodkowicz 2023-10-17 18:23:10 +02:00
parent 0aac6c67a7
commit 6ec3246ae2
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
1 changed files with 5 additions and 6 deletions

View File

@ -47,11 +47,11 @@
, amf-headers , amf-headers
, libGL , libGL
, vulkan-loader , vulkan-loader
#, decklinkSupport ? false , decklinkSupport ? false
#, blackmagic-desktop-video , blackmagic-desktop-video ? null
, libcef , libcef
}: }:
assert (!decklinkSupport || blackmagic-desktop-video!=null) || builtins.throw "decklinkSupport enabled but blackmagic-desktop-video is null";
let let
inherit (lib) optional optionals; inherit (lib) optional optionals;
in in
@ -134,14 +134,13 @@ stdenv.mkDerivation rec {
]; ];
dontWrapGApps = true; dontWrapGApps = true;
preFixup = let preFixup = let
wrapperLibraries = [ wrapperLibraries = [
xorg.libX11 xorg.libX11
libvlc libvlc
]; /*++ optionals decklinkSupport [ ] ++ optionals decklinkSupport [
blackmagic-desktop-video blackmagic-desktop-video
];*/ ];
in in
'' ''
#Remove libs from libcef, they are symlinks and can't be patchelfed #Remove libs from libcef, they are symlinks and can't be patchelfed