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

30 lines
1,013 B
Nix
Raw Normal View History

2015-03-10 19:28:36 +01:00
{ stdenv, fetchurl, makeWrapper, ibus, anthy, intltool, pkgconfig, glib, gobjectIntrospection, python, pythonPackages }:
stdenv.mkDerivation rec {
2015-03-10 19:28:36 +01:00
name = "ibus-anthy-${version}";
version = "1.5.6";
2015-03-10 19:28:36 +01:00
meta = with stdenv.lib; {
description = "IBus interface to the anthy input method";
homepage = http://wiki.github.com/fujiwarat/ibus-anthy;
2015-03-10 19:28:36 +01:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ gebner ];
};
buildInputs = [ makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection python pythonPackages.pygobject3 ];
postFixup = ''
for file in "$out"/libexec/*; do
wrapProgram "$file" \
--prefix PYTHONPATH : $PYTHONPATH \
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
done
'';
src = fetchurl {
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${name}.tar.gz";
sha256 = "0vl904l5862zxfi8fiiljwvqv4yvb3nfdbkmpcqk3zw4r1mn6p03";
2015-03-10 19:28:36 +01:00
};
}