mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
brasero: move cdrtools dependency to a wrapper
This commit is contained in:
parent
e690c3a8dd
commit
ef9175c5fb
23
pkgs/tools/cd-dvd/brasero/wrapper.nix
Normal file
23
pkgs/tools/cd-dvd/brasero/wrapper.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ 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}
|
||||
'';
|
||||
}
|
@ -609,7 +609,9 @@ in
|
||||
|
||||
boxfs = callPackage ../tools/filesystems/boxfs { };
|
||||
|
||||
brasero = callPackage ../tools/cd-dvd/brasero { };
|
||||
brasero-original = lowPrio (callPackage ../tools/cd-dvd/brasero { });
|
||||
|
||||
brasero = callPackage ../tools/cd-dvd/brasero/wrapper.nix { };
|
||||
|
||||
brltty = callPackage ../tools/misc/brltty {
|
||||
alsaSupport = (!stdenv.isDarwin);
|
||||
|
Loading…
Reference in New Issue
Block a user