2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv
|
2019-10-20 07:23:32 -07:00
|
|
|
, fetchurl
|
|
|
|
, gettext
|
2021-01-17 01:17:16 -08:00
|
|
|
, pkg-config
|
2019-10-20 07:23:32 -07:00
|
|
|
, wrapGAppsHook
|
|
|
|
, anthy
|
|
|
|
, ibus
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, python3
|
2016-02-26 15:31:14 -08:00
|
|
|
}:
|
2015-03-10 11:28:36 -07:00
|
|
|
|
2015-05-28 13:03:35 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "ibus-anthy";
|
2021-02-23 15:24:59 -08:00
|
|
|
version = "1.5.12";
|
2015-03-10 11:28:36 -07:00
|
|
|
|
2019-10-20 07:23:32 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${pname}-${version}.tar.gz";
|
2021-02-23 15:24:59 -08:00
|
|
|
sha256 = "sha256-6edY3dRq4pI3bqsXEYf6jyBjDwpXzRKKQSCP3N/fV7s=";
|
2015-03-10 11:28:36 -07:00
|
|
|
};
|
|
|
|
|
2016-02-26 15:31:14 -08:00
|
|
|
buildInputs = [
|
2019-10-20 07:23:32 -07:00
|
|
|
anthy
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
ibus
|
|
|
|
(python3.withPackages (ps: [
|
|
|
|
ps.pygobject3
|
|
|
|
(ps.toPythonModule ibus)
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
2021-01-17 01:17:16 -08:00
|
|
|
pkg-config
|
2019-10-20 07:23:32 -07:00
|
|
|
wrapGAppsHook
|
2016-02-26 15:31:14 -08:00
|
|
|
];
|
2015-03-10 11:28:36 -07:00
|
|
|
|
2019-10-20 07:23:32 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t"
|
|
|
|
];
|
2016-02-28 07:30:09 -08:00
|
|
|
|
2015-03-10 11:28:36 -07:00
|
|
|
postFixup = ''
|
2015-09-06 12:05:26 -07:00
|
|
|
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
2015-03-10 11:28:36 -07:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2019-10-20 07:23:32 -07:00
|
|
|
isIbusEngine = true;
|
|
|
|
description = "IBus interface to the anthy input method";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/fujiwarat/ibus-anthy";
|
2019-10-20 07:23:32 -07:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ gebner ericsagnes ];
|
2015-03-10 11:28:36 -07:00
|
|
|
};
|
|
|
|
}
|