mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
24 lines
576 B
Nix
24 lines
576 B
Nix
{ lib, buildEnv, brasero-original, cdrtools, makeWrapper }:
|
|
|
|
let
|
|
binPath = lib.makeBinPath [ cdrtools ];
|
|
in buildEnv {
|
|
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}
|
|
'';
|
|
}
|