3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
, gettext
, pkgconfig
, wrapGAppsHook
, anthy
, ibus
, glib
, gobject-introspection
, gtk3
, python3
2016-02-26 23:31:14 +00:00
}:
2015-03-10 18:28:36 +00:00
stdenv.mkDerivation rec {
pname = "ibus-anthy";
version = "1.5.11";
2015-03-10 18:28:36 +00:00
src = fetchurl {
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "1zwgswpibh67sgbza8kvg03v06maxc08ihkgm5hmh333sjq9d5c0";
2015-03-10 18:28:36 +00:00
};
2016-02-26 23:31:14 +00:00
buildInputs = [
anthy
glib
gtk3
ibus
(python3.withPackages (ps: [
ps.pygobject3
(ps.toPythonModule ibus)
]))
];
nativeBuildInputs = [
gettext
gobject-introspection
pkgconfig
wrapGAppsHook
2016-02-26 23:31:14 +00:00
];
2015-03-10 18:28:36 +00:00
configureFlags = [
"--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t"
];
2016-02-28 15:30:09 +00:00
2015-03-10 18:28:36 +00:00
postFixup = ''
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
2015-03-10 18:28:36 +00:00
'';
meta = with stdenv.lib; {
isIbusEngine = true;
description = "IBus interface to the anthy input method";
homepage = "https://github.com/fujiwarat/ibus-anthy";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ gebner ericsagnes ];
2015-03-10 18:28:36 +00:00
};
}