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