@@ -0,0 +1,29 @@
1+{ stdenv, fetchurl, makeWrapper, ibus, anthy, intltool, pkgconfig, glib, gobjectIntrospection, python, pythonPackages }:
2+
3+let version = "1.5.4";
4+in stdenv.mkDerivation {
5+ name = "ibus-anthy-${version}";
6+
7+ meta = with stdenv.lib; {
8+ description = "IBus interface to the anthy input method";
9+ homepace = https://code.google.com/p/ibus/;
10+ license = licenses.gpl2Plus;
11+ platforms = platforms.linux;
12+ maintainers = with maintainers; [ gebner ];
13+ };
14+
15+ buildInputs = [ makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection python pythonPackages.pygobject3 ];
16+
17+ postFixup = ''
18+ for file in "$out"/libexec/*; do
19+ wrapProgram "$file" \
20+ --prefix PYTHONPATH : $PYTHONPATH \
21+ --prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
22+ done
23+ '';
24+
25+ src = fetchurl {
26+ url = "https://ibus.googlecode.com/files/ibus-anthy-${version}.tar.gz";
27+ sha256 = "4c0a8b88a2c547e72173a7d682d82797f6c65fe712abe5f3b89495d4eec7b031";
28+ };
29+}