mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
27 lines
467 B
Nix
27 lines
467 B
Nix
{
|
|
lib,
|
|
symlinkJoin,
|
|
brasero-unwrapped,
|
|
cdrtools,
|
|
libdvdcss,
|
|
makeWrapper,
|
|
}:
|
|
|
|
let
|
|
binPath = lib.makeBinPath [ cdrtools ];
|
|
in
|
|
symlinkJoin {
|
|
pname = "brasero";
|
|
|
|
paths = [ brasero-unwrapped ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/brasero \
|
|
--prefix PATH ':' ${binPath} \
|
|
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libdvdcss ]}/libdvdcss.so
|
|
'';
|
|
|
|
inherit (brasero-unwrapped) meta version;
|
|
}
|