2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-10-20 14:57:03 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
2019-10-20 15:06:41 +01:00
|
|
|
, gettext
|
2021-01-17 09:17:16 +00:00
|
|
|
, pkg-config
|
2019-10-20 14:57:03 +01:00
|
|
|
, wrapGAppsHook
|
|
|
|
, sqlite
|
|
|
|
, libpinyin
|
|
|
|
, db
|
|
|
|
, 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";
|
2021-02-11 08:36:19 +00:00
|
|
|
version = "1.12.0";
|
2016-10-01 02:33:10 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-10-20 14:57:03 +01:00
|
|
|
owner = "libpinyin";
|
|
|
|
repo = "ibus-libpinyin";
|
|
|
|
rev = version;
|
2021-02-11 08:36:19 +00:00
|
|
|
sha256 = "sha256-fEEiwRoGGFAki1DMQvGuzjz2NAjhExyH11l8KTwjjsI=";
|
2016-10-01 02:33:10 +01:00
|
|
|
};
|
|
|
|
|
2019-10-20 14:57:03 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2019-10-20 15:06:41 +01:00
|
|
|
gettext
|
2021-01-17 09:17:16 +00:00
|
|
|
pkg-config
|
2019-10-20 14:57:03 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ibus
|
|
|
|
glib
|
|
|
|
sqlite
|
|
|
|
libpinyin
|
|
|
|
(python3.withPackages (pypkgs: with pypkgs; [
|
|
|
|
pygobject3
|
|
|
|
(toPythonModule ibus)
|
|
|
|
]))
|
|
|
|
gtk3
|
|
|
|
db
|
|
|
|
];
|
2016-10-01 02:33:10 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-03-26 17:12:16 +00:00
|
|
|
isIbusEngine = true;
|
2019-10-20 14:57:03 +01:00
|
|
|
description = "IBus interface to the libpinyin input method";
|
2021-02-11 08:36:19 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2019-10-20 14:57:03 +01:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
platforms = platforms.linux;
|
2016-03-26 17:12:16 +00:00
|
|
|
};
|
|
|
|
}
|