nixpkgs/pkgs/applications/video/avidemux/wrapper.nix

25 lines
557 B
Nix
Raw Normal View History

2016-04-26 13:27:25 +01:00
{ symlinkJoin, avidemux_unwrapped, makeWrapper
2016-03-26 08:44:26 +00:00
# GTK version is broken upstream, see https://bugzilla.redhat.com/show_bug.cgi?id=1244340
, withUi ? "qt4"
}:
let ui = builtins.getAttr "avidemux_${withUi}" avidemux_unwrapped; in
2016-03-26 08:44:26 +00:00
assert ui.isUi;
2016-03-26 08:44:26 +00:00
2016-04-26 13:27:25 +01:00
symlinkJoin {
name = "avidemux-${withUi}-${ui.version}";
paths = [ ui avidemux_unwrapped.avidemux_common avidemux_unwrapped.avidemux_settings ];
2016-03-26 08:44:26 +00:00
buildInputs = [ makeWrapper ];
postBuild = ''
for i in $out/bin/*; do
wrapProgram $i --set ADM_ROOT_DIR $out
done
'';
meta = ui.meta;
2016-03-26 08:44:26 +00:00
}