2016-02-26 23:31:14 +00:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, ibus, anthy, intltool
|
|
|
|
, pkgconfig, glib, gobjectIntrospection
|
|
|
|
, python3, pygobject3, gtk3, libtool, automake, autoconf
|
|
|
|
}:
|
2015-03-10 18:28:36 +00:00
|
|
|
|
2015-05-28 21:03:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-03-10 18:28:36 +00:00
|
|
|
name = "ibus-anthy-${version}";
|
2016-02-10 04:15:26 +00:00
|
|
|
version = "1.5.8";
|
2015-03-10 18:28:36 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-02-10 07:10:35 +00:00
|
|
|
isIbusEngine = true;
|
|
|
|
description = "IBus interface to the anthy input method";
|
|
|
|
homepage = http://wiki.github.com/fujiwarat/ibus-anthy;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ gebner ericsagnes ];
|
2015-03-10 18:28:36 +00:00
|
|
|
};
|
|
|
|
|
2016-02-10 04:15:26 +00:00
|
|
|
preConfigure = "./autogen.sh --prefix=$out";
|
|
|
|
|
2015-09-01 17:04:14 +01:00
|
|
|
configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";
|
|
|
|
|
2016-02-26 23:31:14 +00:00
|
|
|
buildInputs = [
|
|
|
|
makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection
|
|
|
|
python3 pygobject3 gtk3 libtool automake autoconf
|
|
|
|
];
|
2015-03-10 18:28:36 +00:00
|
|
|
|
|
|
|
postFixup = ''
|
2015-09-06 20:05:26 +01:00
|
|
|
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
2016-02-26 23:31:14 +00:00
|
|
|
for file in "$out"/libexec/*; do # */
|
2015-03-10 18:28:36 +00:00
|
|
|
wrapProgram "$file" \
|
|
|
|
--prefix PYTHONPATH : $PYTHONPATH \
|
|
|
|
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2016-02-10 04:15:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ibus";
|
|
|
|
repo = "ibus-anthy";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1laxwpnhgihv4dz5cgcz6d0a0880r93n7039ciz1m53hdzapwi4a";
|
2015-03-10 18:28:36 +00:00
|
|
|
};
|
|
|
|
}
|