1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/video/avidemux/wrapper.nix
2016-04-26 15:37:43 +03:00

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;
}