tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
deadbeef-with-plugins: use symlinkJoin
Nikolay Amiantov
9 years ago
5690c6ca
dfe608c8
+6
-14
1 changed file
expand all
collapse all
unified
split
pkgs
applications
audio
deadbeef
wrapper.nix
+6
-14
pkgs/applications/audio/deadbeef/wrapper.nix
···
1
-
{ stdenv, buildEnv, deadbeef, makeWrapper, plugins }:
2
3
-
let
4
-
drv = buildEnv {
5
-
name = "deadbeef-with-plugins-" + (builtins.parseDrvName deadbeef.name).version;
6
7
paths = [ deadbeef ] ++ plugins;
8
0
0
9
postBuild = ''
10
-
# TODO: This could be avoided if buildEnv could be forced to create all directories
11
-
if [ -L $out/bin ]; then
12
-
rm $out/bin
13
-
mkdir $out/bin
14
-
for i in ${deadbeef}/bin/*; do
15
-
ln -s $i $out/bin
16
-
done
17
-
fi
18
wrapProgram $out/bin/deadbeef \
19
--set DEADBEEF_PLUGIN_DIR "$out/lib/deadbeef"
20
'';
21
-
};
22
-
in stdenv.lib.overrideDerivation drv (x : { buildInputs = x.buildInputs ++ [ makeWrapper ]; })
···
1
+
{ stdenv, symlinkJoin, deadbeef, makeWrapper, plugins }:
2
3
+
symlinkJoin {
4
+
name = "deadbeef-with-plugins-${deadbeef.version}";
0
5
6
paths = [ deadbeef ] ++ plugins;
7
8
+
buildInputs = [ makeWrapper ];
9
+
10
postBuild = ''
0
0
0
0
0
0
0
0
11
wrapProgram $out/bin/deadbeef \
12
--set DEADBEEF_PLUGIN_DIR "$out/lib/deadbeef"
13
'';
14
+
}
0