nixpkgs/pkgs/tools/cd-dvd/brasero/wrapper.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
470 B
Nix
Raw Normal View History

{ lib, symlinkJoin, brasero-original, cdrtools, libdvdcss, makeWrapper }:
let
binPath = lib.makeBinPath [ cdrtools ];
2016-04-26 12:27:59 +00:00
in symlinkJoin {
name = "brasero-${brasero-original.version}";
paths = [ brasero-original ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/brasero \
--prefix PATH ':' ${binPath} \
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libdvdcss ]}/libdvdcss.so
'';
inherit (brasero-original) meta;
}