summary refs log tree commit diff
path: root/pkgs/applications/audio/deadbeef/wrapper.nix
blob: 66108deab1e32546775690a3a1df1175cfb3c502 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ 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"
  '';
}