diff options
Diffstat (limited to 'pkgs/applications/audio/deadbeef')
-rw-r--r-- | pkgs/applications/audio/deadbeef/wrapper.nix | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/pkgs/applications/audio/deadbeef/wrapper.nix b/pkgs/applications/audio/deadbeef/wrapper.nix index b612f195af3f5..5b14302204e7f 100644 --- a/pkgs/applications/audio/deadbeef/wrapper.nix +++ b/pkgs/applications/audio/deadbeef/wrapper.nix @@ -1,22 +1,14 @@ -{ stdenv, buildEnv, deadbeef, makeWrapper, plugins }: +{ stdenv, symlinkJoin, deadbeef, makeWrapper, plugins }: -let -drv = buildEnv { - name = "deadbeef-with-plugins-" + (builtins.parseDrvName deadbeef.name).version; +symlinkJoin { + name = "deadbeef-with-plugins-${deadbeef.version}"; paths = [ deadbeef ] ++ plugins; + buildInputs = [ makeWrapper ]; + postBuild = '' - # TODO: This could be avoided if buildEnv could be forced to create all directories - if [ -L $out/bin ]; then - rm $out/bin - mkdir $out/bin - for i in ${deadbeef}/bin/*; do - ln -s $i $out/bin - done - fi wrapProgram $out/bin/deadbeef \ --set DEADBEEF_PLUGIN_DIR "$out/lib/deadbeef" ''; - }; -in stdenv.lib.overrideDerivation drv (x : { buildInputs = x.buildInputs ++ [ makeWrapper ]; }) +} |