Merge pull request #189351 from Atemu/obs-studio-include-plugin-in-wrapper-again
obs-studio: include plugins in wrapper
This commit is contained in:
commit
cbd698da99
1 changed files with 10 additions and 3 deletions
|
@ -6,7 +6,7 @@ symlinkJoin {
|
|||
name = "wrapped-${obs-studio.name}";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
paths = [ obs-studio ];
|
||||
paths = [ obs-studio ] ++ plugins;
|
||||
|
||||
postBuild = with lib;
|
||||
let
|
||||
|
@ -19,13 +19,20 @@ symlinkJoin {
|
|||
paths = plugins;
|
||||
};
|
||||
|
||||
wrapCommand = [
|
||||
wrapCommandLine = [
|
||||
"wrapProgram"
|
||||
"$out/bin/obs"
|
||||
''--set OBS_PLUGINS_PATH "${pluginsJoined}/lib/obs-plugins"''
|
||||
''--set OBS_PLUGINS_DATA_PATH "${pluginsJoined}/share/obs/obs-plugins"''
|
||||
] ++ pluginArguments;
|
||||
in concatStringsSep " " wrapCommand;
|
||||
in ''
|
||||
${concatStringsSep " " wrapCommandLine}
|
||||
|
||||
# Remove unused obs-plugins dir to not cause confusion
|
||||
rm -r $out/share/obs/obs-plugins
|
||||
# Leave some breadcrumbs
|
||||
echo 'Plugins are at ${pluginsJoined}/share/obs/obs-plugins' > $out/share/obs/obs-plugins-README
|
||||
'';
|
||||
|
||||
inherit (obs-studio) meta;
|
||||
passthru = obs-studio.passthru // {
|
||||
|
|
Loading…
Reference in a new issue