mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 07:34:36 +00:00
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;
|
||
|
};
|
||
|
}
|