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
1
-
{ stdenv, buildEnv, deadbeef, makeWrapper, plugins }:
1
1
+
{ stdenv, symlinkJoin, deadbeef, makeWrapper, plugins }:
2
2
3
3
-
let
4
4
-
drv = buildEnv {
5
5
-
name = "deadbeef-with-plugins-" + (builtins.parseDrvName deadbeef.name).version;
3
3
+
symlinkJoin {
4
4
+
name = "deadbeef-with-plugins-${deadbeef.version}";
6
5
7
6
paths = [ deadbeef ] ++ plugins;
8
7
8
8
+
buildInputs = [ makeWrapper ];
9
9
+
9
10
postBuild = ''
10
10
-
# TODO: This could be avoided if buildEnv could be forced to create all directories
11
11
-
if [ -L $out/bin ]; then
12
12
-
rm $out/bin
13
13
-
mkdir $out/bin
14
14
-
for i in ${deadbeef}/bin/*; do
15
15
-
ln -s $i $out/bin
16
16
-
done
17
17
-
fi
18
11
wrapProgram $out/bin/deadbeef \
19
12
--set DEADBEEF_PLUGIN_DIR "$out/lib/deadbeef"
20
13
'';
21
21
-
};
22
22
-
in stdenv.lib.overrideDerivation drv (x : { buildInputs = x.buildInputs ++ [ makeWrapper ]; })
14
14
+
}