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

36 lines
1.1 KiB
Nix
Raw Normal View History

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