depot/third_party/nixpkgs/pkgs/applications/audio/deadbeef/wrapper.nix

15 lines
308 B
Nix
Raw Normal View History

{ symlinkJoin, deadbeef, makeWrapper, plugins }:
symlinkJoin {
name = "deadbeef-with-plugins-${deadbeef.version}";
paths = [ deadbeef ] ++ plugins;
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/deadbeef \
--set DEADBEEF_PLUGIN_DIR "$out/lib/deadbeef"
'';
}