mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
obs-studio: add flag for decklink support
This commit is contained in:
parent
08f93ba684
commit
084dfe801e
@ -46,6 +46,8 @@
|
|||||||
, nlohmann_json
|
, nlohmann_json
|
||||||
, websocketpp
|
, websocketpp
|
||||||
, asio
|
, asio
|
||||||
|
, decklinkSupport ? false
|
||||||
|
, blackmagic-desktop-video
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -134,9 +136,17 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
preFixup = ''
|
preFixup = let
|
||||||
|
wrapperLibraries = [
|
||||||
|
xorg.libX11
|
||||||
|
libvlc
|
||||||
|
libGL
|
||||||
|
] ++ optionals decklinkSupport [
|
||||||
|
blackmagic-desktop-video
|
||||||
|
];
|
||||||
|
in ''
|
||||||
qtWrapperArgs+=(
|
qtWrapperArgs+=(
|
||||||
--prefix LD_LIBRARY_PATH : "$out/lib:${lib.makeLibraryPath [ xorg.libX11 libvlc libGL ]}"
|
--prefix LD_LIBRARY_PATH : "$out/lib:${lib.makeLibraryPath wrapperLibraries}"
|
||||||
''${gappsWrapperArgs[@]}
|
''${gappsWrapperArgs[@]}
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user