From 6ec3246ae2aa31c66a6acedf2fef800334698682 Mon Sep 17 00:00:00 2001 From: materus Date: Tue, 17 Oct 2023 18:23:10 +0200 Subject: [PATCH] obs-studio: fix decklink --- pkgs/apps/obs/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/apps/obs/default.nix b/pkgs/apps/obs/default.nix index fb03e64..72ffc17 100644 --- a/pkgs/apps/obs/default.nix +++ b/pkgs/apps/obs/default.nix @@ -47,11 +47,11 @@ , amf-headers , libGL , vulkan-loader -#, decklinkSupport ? false -#, blackmagic-desktop-video +, decklinkSupport ? false +, blackmagic-desktop-video ? null , libcef }: - +assert (!decklinkSupport || blackmagic-desktop-video!=null) || builtins.throw "decklinkSupport enabled but blackmagic-desktop-video is null"; let inherit (lib) optional optionals; in @@ -134,14 +134,13 @@ stdenv.mkDerivation rec { ]; dontWrapGApps = true; - preFixup = let wrapperLibraries = [ xorg.libX11 libvlc - ]; /*++ optionals decklinkSupport [ + ] ++ optionals decklinkSupport [ blackmagic-desktop-video - ];*/ + ]; in '' #Remove libs from libcef, they are symlinks and can't be patchelfed