2016-02-28 15:30:09 +00:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig
|
2018-12-02 11:41:15 +00:00
|
|
|
, anthy, ibus, glib, gobject-introspection, gtk3, python3
|
2016-02-26 23:31:14 +00:00
|
|
|
}:
|
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}";
|
2019-05-21 18:35:57 +01:00
|
|
|
version = "1.5.11";
|
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";
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://github.com/fujiwarat/ibus-anthy;
|
2016-02-10 07:10:35 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ gebner ericsagnes ];
|
2015-03-10 18:28:36 +00:00
|
|
|
};
|
|
|
|
|
2017-03-25 20:53:14 +00:00
|
|
|
configureFlags = [ "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t" ];
|
2015-09-01 17:04:14 +01:00
|
|
|
|
2016-02-26 23:31:14 +00:00
|
|
|
buildInputs = [
|
2018-12-02 11:41:15 +00:00
|
|
|
anthy glib gobject-introspection gtk3 ibus (python3.withPackages (ps: [ps.pygobject3]))
|
2016-02-26 23:31:14 +00:00
|
|
|
];
|
2015-03-10 18:28:36 +00:00
|
|
|
|
2017-03-25 20:53:14 +00:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig python3.pkgs.wrapPython ];
|
2016-02-28 15:30:09 +00:00
|
|
|
|
2015-03-10 18:28:36 +00:00
|
|
|
postFixup = ''
|
2017-03-25 20:53:14 +00:00
|
|
|
wrapPythonPrograms
|
2015-09-06 20:05:26 +01:00
|
|
|
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
2015-03-10 18:28:36 +00:00
|
|
|
'';
|
|
|
|
|
2016-02-28 15:30:09 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${name}.tar.gz";
|
2019-05-21 18:35:57 +01:00
|
|
|
sha256 = "1zwgswpibh67sgbza8kvg03v06maxc08ihkgm5hmh333sjq9d5c0";
|
2015-03-10 18:28:36 +00:00
|
|
|
};
|
|
|
|
}
|