nixpkgs/pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix

36 lines
1.0 KiB
Nix
Raw Normal View History

2016-02-28 15:30:09 +00:00
{ stdenv, fetchurl, intltool, pkgconfig
, anthy, ibus, glib, gobjectIntrospection, gtk3, python3
2016-02-26 23:31:14 +00:00
}:
2015-03-10 18:28:36 +00:00
stdenv.mkDerivation rec {
2015-03-10 18:28:36 +00:00
name = "ibus-anthy-${version}";
2017-08-29 09:37:42 +01:00
version = "1.5.9";
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
};
configureFlags = [ "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t" ];
2016-02-26 23:31:14 +00:00
buildInputs = [
anthy glib gobjectIntrospection gtk3 ibus python3
2016-02-26 23:31:14 +00:00
];
2015-03-10 18:28:36 +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 = ''
wrapPythonPrograms
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";
2017-08-29 09:37:42 +01:00
sha256 = "1y8sf837rmp662bv6zakny0xcm7c9c5qda7f9kq9riv9ywpcbw6x";
2015-03-10 18:28:36 +00:00
};
}