mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
e8e0255162
* obs-studio: tidy things up a little * obs-studio: add plugin wrapper This allows users to install plugins into their OBS Studio, like so: wrapOBS { plugins = with obs-studio-plugins; [ wlrobs obs-multi-rtmp obs-gstreamer ]; } * obs-gstreamer: convert to plugin * obs-move-transition: convert to plugin * obs-multi-rtmp: convert to plugin * obs-ndi: convert to plugin * obs-v4l2sink: remove The functionality provided by this package is included in the upstream project as of version 26.1. Link: https://github.com/CatxFish/obs-v4l2sink/issues/56#issuecomment-753191690 Link: https://github.com/obsproject/obs-studio/releases/tag/26.1.0 * wlrobs: convert to plugin, unstable-2020-06-22 -> unstable-2021-05-13
22 lines
481 B
Nix
22 lines
481 B
Nix
{ obs-studio, symlinkJoin, makeWrapper }:
|
|
|
|
{ plugins ? [] }:
|
|
|
|
symlinkJoin {
|
|
name = "wrapped-${obs-studio.name}";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
paths = [ obs-studio ] ++ plugins;
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/obs \
|
|
--set OBS_PLUGINS_PATH "$out/lib/obs-plugins" \
|
|
--set OBS_PLUGINS_DATA_PATH "$out/share/obs/obs-plugins"
|
|
'';
|
|
|
|
inherit (obs-studio) meta;
|
|
passthru = obs-studio.passthru // {
|
|
passthru.unwrapped = obs-studio;
|
|
};
|
|
}
|