2016-10-01 02:33:10 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook
|
|
|
|
, intltool, pkgconfig, sqlite, libpinyin, db
|
2017-03-25 20:53:14 +00:00
|
|
|
, ibus, glib, gtk3, python3
|
2016-03-26 17:12:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ibus-libpinyin";
|
2018-04-20 12:51:53 +01:00
|
|
|
version = "1.10.0";
|
2016-10-01 02:33:10 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libpinyin";
|
|
|
|
repo = "ibus-libpinyin";
|
|
|
|
rev = version;
|
2018-04-20 12:51:53 +01:00
|
|
|
sha256 = "0zkzz6ig74nws8phqxbsggnpf5g5f2hxi0mdyn2m3s4nm14q3ma6";
|
2016-10-01 02:33:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ibus glib sqlite libpinyin python3 gtk3 db ];
|
2017-03-25 20:53:14 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkgconfig python3.pkgs.wrapPython ];
|
2016-10-01 02:33:10 +01:00
|
|
|
|
|
|
|
postAutoreconf = ''
|
|
|
|
intltoolize
|
|
|
|
'';
|
2016-03-26 17:12:16 +00:00
|
|
|
|
2017-03-25 20:53:14 +00:00
|
|
|
postFixup = "wrapPythonPrograms";
|
|
|
|
|
2016-03-26 17:12:16 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
isIbusEngine = true;
|
|
|
|
description = "IBus interface to the libpinyin input method";
|
|
|
|
license = licenses.gpl2;
|
2016-10-01 02:33:10 +01:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
2016-03-26 17:12:16 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|