2014-01-26 00:22:04 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, python, intltool, pkgconfig
|
2014-02-07 22:44:44 +01:00
|
|
|
, gnome3, atk, pygobject3, dbus, libnotify, isocodes, gobjectIntrospection, wayland }:
|
2014-01-25 17:05:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ibus-${version}";
|
2015-05-28 22:03:35 +02:00
|
|
|
version = "1.5.10";
|
2014-01-25 17:05:33 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-05-28 22:03:35 +02:00
|
|
|
url = "https://github.com/ibus/ibus/releases/download/${version}/${name}.tar.gz";
|
|
|
|
sha256 = "152mdzi9hr246spnn7bkb4gy16x30082xwq460gmm1q2cs0bf08x";
|
2014-01-25 17:05:33 +01:00
|
|
|
};
|
|
|
|
|
2014-02-08 00:38:04 +01:00
|
|
|
configureFlags = "--disable-gconf --enable-dconf --disable-memconf --enable-ui --enable-python-library";
|
2014-01-25 17:05:33 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2014-01-26 00:22:04 +01:00
|
|
|
makeWrapper python gnome3.glib wayland
|
2014-01-25 17:05:33 +01:00
|
|
|
intltool pkgconfig gnome3.gtk2
|
|
|
|
gnome3.gtk3 dbus gnome3.dconf gnome3.gconf
|
|
|
|
libnotify isocodes gobjectIntrospection
|
|
|
|
];
|
|
|
|
|
2015-05-28 22:03:35 +02:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace data/dconf/Makefile.in --replace "dconf update" "echo"
|
|
|
|
sed -i "s|PYTHON2_LIBDIR=.*|PYTHON2_LIBDIR=$out/lib/${python.libPrefix}|" configure
|
2014-07-30 22:38:23 +02:00
|
|
|
'';
|
2014-01-25 17:05:33 +01:00
|
|
|
|
2014-04-05 15:51:42 +02:00
|
|
|
preFixup = ''
|
2014-01-25 17:05:33 +01:00
|
|
|
for f in "$out"/bin/*; do
|
2014-04-05 15:51:42 +02:00
|
|
|
wrapProgram "$f" --prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
|
2014-02-07 22:44:44 +01:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath ${pygobject3})" \
|
|
|
|
--prefix LD_LIBRARY_PATH : "${gnome3.gtk3}/lib:${atk}/lib:$out/lib" \
|
2014-02-08 00:38:04 +01: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 17:05:33 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2015-05-28 22:03:35 +02:00
|
|
|
homepage = https://github.com/ibus/ibus;
|
2014-01-25 17:05:33 +01:00
|
|
|
description = "Intelligent Input Bus for Linux / Unix OS";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|