1 { lib, obs-studio, symlinkJoin, makeWrapper }:
6 name = "wrapped-${obs-studio.name}";
8 nativeBuildInputs = [ makeWrapper ];
9 paths = [ obs-studio ] ++ plugins;
13 # Some plugins needs extra environment, see obs-gstreamer for an example.
15 lists.concatMap (plugin: plugin.obsWrapperArguments or []) plugins;
17 pluginsJoined = symlinkJoin {
18 name = "obs-studio-plugins";
25 ''--set OBS_PLUGINS_PATH "${pluginsJoined}/lib/obs-plugins"''
26 ''--set OBS_PLUGINS_DATA_PATH "${pluginsJoined}/share/obs/obs-plugins"''
27 ] ++ lists.unique pluginArguments;
29 ${concatStringsSep " " wrapCommandLine}
31 # Remove unused obs-plugins dir to not cause confusion
32 rm -r $out/share/obs/obs-plugins
33 # Leave some breadcrumbs
34 echo 'Plugins are at ${pluginsJoined}/share/obs/obs-plugins' > $out/share/obs/obs-plugins-README
37 inherit (obs-studio) meta;
38 passthru = obs-studio.passthru // {
39 passthru.unwrapped = obs-studio;