summary refs log tree commit diff
path: root/pkgs/tools/cd-dvd/brasero/wrapper.nix
blob: 839cc1d604e64775552f34fce43a1944f560a2fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ lib, symlinkJoin, brasero-original, cdrtools, makeWrapper }:

let
  binPath = lib.makeBinPath [ cdrtools ];
in symlinkJoin {
  name = "brasero-${brasero-original.version}";

  paths = [ brasero-original ];
  buildInputs = [ makeWrapper ];

  postBuild = ''
    wrapProgram $out/bin/brasero \
      --prefix PATH ':' ${binPath}
  '';
}