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"
|
|
|
|
}:
|
|
|
|
|
2016-04-13 16:15:36 +01:00
|
|
|
let ui = builtins.getAttr "avidemux_${withUi}" avidemux_unwrapped; in
|
2016-03-26 08:44:26 +00:00
|
|
|
|
2016-04-13 16:15:36 +01: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}";
|
2016-04-13 16:15:36 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
2016-04-13 16:15:36 +01:00
|
|
|
|
|
|
|
meta = ui.meta;
|
2016-03-26 08:44:26 +00:00
|
|
|
}
|