2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, gettext
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, sqlite
|
|
|
|
, libpinyin
|
|
|
|
, db
|
|
|
|
, ibus
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ibus-libpinyin";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "1.12.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libpinyin";
|
|
|
|
repo = "ibus-libpinyin";
|
|
|
|
rev = version;
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-fEEiwRoGGFAki1DMQvGuzjz2NAjhExyH11l8KTwjjsI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ibus
|
|
|
|
glib
|
|
|
|
sqlite
|
|
|
|
libpinyin
|
|
|
|
(python3.withPackages (pypkgs: with pypkgs; [
|
|
|
|
pygobject3
|
|
|
|
(toPythonModule ibus)
|
|
|
|
]))
|
|
|
|
gtk3
|
|
|
|
db
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
isIbusEngine = true;
|
|
|
|
description = "IBus interface to the libpinyin input method";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|