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

34 lines
868 B
Nix
Raw Normal View History

2016-09-30 18:33:10 -07:00
{ stdenv, fetchFromGitHub, autoreconfHook
, intltool, pkgconfig, sqlite, libpinyin, db
, ibus, glib, gtk3, python3
2016-03-26 10:12:16 -07:00
}:
stdenv.mkDerivation rec {
name = "ibus-libpinyin-${version}";
version = "1.10.0";
2016-09-30 18:33:10 -07:00
src = fetchFromGitHub {
owner = "libpinyin";
repo = "ibus-libpinyin";
rev = version;
sha256 = "0zkzz6ig74nws8phqxbsggnpf5g5f2hxi0mdyn2m3s4nm14q3ma6";
2016-09-30 18:33:10 -07:00
};
buildInputs = [ ibus glib sqlite libpinyin python3 gtk3 db ];
nativeBuildInputs = [ autoreconfHook intltool pkgconfig python3.pkgs.wrapPython ];
2016-09-30 18:33:10 -07:00
postAutoreconf = ''
intltoolize
'';
2016-03-26 10:12:16 -07:00
postFixup = "wrapPythonPrograms";
2016-03-26 10:12:16 -07:00
meta = with stdenv.lib; {
isIbusEngine = true;
description = "IBus interface to the libpinyin input method";
license = licenses.gpl2;
2016-09-30 18:33:10 -07:00
maintainers = with maintainers; [ ericsagnes ];
2016-03-26 10:12:16 -07:00
platforms = platforms.linux;
};
}