mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
25 lines
557 B
Nix
25 lines
557 B
Nix
{ symlinkJoin, avidemux_unwrapped, makeWrapper
|
|
# 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
|
|
|
|
assert ui.isUi;
|
|
|
|
symlinkJoin {
|
|
name = "avidemux-${withUi}-${ui.version}";
|
|
|
|
paths = [ ui avidemux_unwrapped.avidemux_common avidemux_unwrapped.avidemux_settings ];
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
for i in $out/bin/*; do
|
|
wrapProgram $i --set ADM_ROOT_DIR $out
|
|
done
|
|
'';
|
|
|
|
meta = ui.meta;
|
|
}
|