2015-03-10 19:28:36 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, ibus, anthy, intltool, pkgconfig, glib, gobjectIntrospection, python, pythonPackages }:
|
|
|
|
|
2015-05-28 22:03:35 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-03-10 19:28:36 +01:00
|
|
|
name = "ibus-anthy-${version}";
|
2015-09-01 18:04:14 +02:00
|
|
|
version = "1.5.7";
|
2015-03-10 19:28:36 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "IBus interface to the anthy input method";
|
2015-05-28 22:03:35 +02:00
|
|
|
homepage = http://wiki.github.com/fujiwarat/ibus-anthy;
|
2015-03-10 19:28:36 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
|
2015-09-01 18:04:14 +02:00
|
|
|
configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";
|
|
|
|
|
2015-03-10 19:28:36 +01:00
|
|
|
buildInputs = [ makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection python pythonPackages.pygobject3 ];
|
|
|
|
|
|
|
|
postFixup = ''
|
2015-09-06 21:05:26 +02:00
|
|
|
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
2015-03-10 19:28:36 +01:00
|
|
|
for file in "$out"/libexec/*; do
|
|
|
|
wrapProgram "$file" \
|
|
|
|
--prefix PYTHONPATH : $PYTHONPATH \
|
|
|
|
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
2015-05-28 22:03:35 +02:00
|
|
|
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${name}.tar.gz";
|
2015-09-01 18:04:14 +02:00
|
|
|
sha256 = "00sjrfhghrgkqm72mf39f8sz6wr4fwvvs9mn2alaldhgr5v0c861";
|
2015-03-10 19:28:36 +01:00
|
|
|
};
|
|
|
|
}
|