2014-01-25 23:22:04 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, python, intltool, pkgconfig
|
2014-02-07 21:44:44 +00:00
|
|
|
, gnome3, atk, pygobject3, dbus, libnotify, isocodes, gobjectIntrospection, wayland }:
|
2014-01-25 16:05:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ibus-${version}";
|
|
|
|
version = "1.5.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ibus.googlecode.com/files/${name}.tar.gz";
|
|
|
|
sha256 = "1v4a9xv2k26g6ggk4282ynfvh68j2r5hg1cdpvnryfa8c2pkdaq2";
|
|
|
|
};
|
|
|
|
|
2014-02-07 23:38:04 +00:00
|
|
|
configureFlags = "--disable-gconf --enable-dconf --disable-memconf --enable-ui --enable-python-library";
|
2014-01-25 16:05:33 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2014-01-25 23:22:04 +00:00
|
|
|
makeWrapper python gnome3.glib wayland
|
2014-01-25 16:05:33 +00:00
|
|
|
intltool pkgconfig gnome3.gtk2
|
|
|
|
gnome3.gtk3 dbus gnome3.dconf gnome3.gconf
|
|
|
|
libnotify isocodes gobjectIntrospection
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = "patchShebangs ./scripts";
|
|
|
|
|
2014-04-05 14:51:42 +01:00
|
|
|
preFixup = ''
|
2014-01-25 16:05:33 +00:00
|
|
|
for f in "$out"/bin/*; do
|
2014-04-05 14:51:42 +01:00
|
|
|
wrapProgram "$f" --prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
|
2014-02-07 21:44:44 +00:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath ${pygobject3})" \
|
|
|
|
--prefix LD_LIBRARY_PATH : "${gnome3.gtk3}/lib:${atk}/lib:$out/lib" \
|
2014-02-07 23:38:04 +00:00
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${gnome3.dconf}/lib/gio/modules"
|
2014-01-25 16:05:33 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://code.google.com/p/ibus/;
|
|
|
|
description = "Intelligent Input Bus for Linux / Unix OS";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|