1{ stdenv, fetchurl, makeWrapper, ibus, anthy, intltool, pkgconfig, glib, gobjectIntrospection, python, pythonPackages }:
2
3stdenv.mkDerivation rec {
4 name = "ibus-anthy-${version}";
5 version = "1.5.7";
6
7 meta = with stdenv.lib; {
8 description = "IBus interface to the anthy input method";
9 homepage = http://wiki.github.com/fujiwarat/ibus-anthy;
10 license = licenses.gpl2Plus;
11 platforms = platforms.linux;
12 maintainers = with maintainers; [ gebner ];
13 };
14
15 configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";
16
17 buildInputs = [ makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection python pythonPackages.pygobject3 ];
18
19 postFixup = ''
20 substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
21 for file in "$out"/libexec/*; do
22 wrapProgram "$file" \
23 --prefix PYTHONPATH : $PYTHONPATH \
24 --prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
25 done
26 '';
27
28 src = fetchurl {
29 url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${name}.tar.gz";
30 sha256 = "00sjrfhghrgkqm72mf39f8sz6wr4fwvvs9mn2alaldhgr5v0c861";
31 };
32}