brasero: use symlinkJoin

This commit is contained in:
Nikolay Amiantov 2016-04-26 15:27:59 +03:00
parent aa1a40b63d
commit 73db7887ed

View file

@ -1,22 +1,14 @@
{ lib, buildEnv, brasero-original, cdrtools, makeWrapper }:
{ lib, symlinkJoin, brasero-original, cdrtools, makeWrapper }:
let
binPath = lib.makeBinPath [ cdrtools ];
in buildEnv {
in symlinkJoin {
name = "brasero-${brasero-original.version}";
paths = [ brasero-original ];
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 ${brasero-original}/bin/*; do
ln -s $i $out/bin
done
fi
wrapProgram $out/bin/brasero \
--prefix PATH ':' ${binPath}
'';