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