2022-01-25 03:21:06 +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
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlite
|
|
|
|
, libpinyin
|
|
|
|
, db
|
|
|
|
, ibus
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, python3
|
2022-01-25 03:21:06 +00:00
|
|
|
, lua
|
|
|
|
, opencc
|
2024-01-02 11:29:13 +00:00
|
|
|
, libsoup_3
|
2022-01-25 03:21:06 +00:00
|
|
|
, json-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ibus-libpinyin";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.15.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libpinyin";
|
|
|
|
repo = "ibus-libpinyin";
|
|
|
|
rev = version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-Sr0zB6VeEYGDu1gx2kTVoaTm131F4K+/QH/+ibcbMT8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-cloud-input-mode"
|
|
|
|
"--enable-opencc"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
ibus
|
|
|
|
glib
|
|
|
|
sqlite
|
|
|
|
libpinyin
|
|
|
|
(python3.withPackages (pypkgs: with pypkgs; [
|
|
|
|
pygobject3
|
|
|
|
(toPythonModule ibus)
|
|
|
|
]))
|
|
|
|
gtk3
|
|
|
|
db
|
2022-01-25 03:21:06 +00:00
|
|
|
lua
|
|
|
|
opencc
|
2024-01-02 11:29:13 +00:00
|
|
|
libsoup_3
|
2022-01-25 03:21:06 +00:00
|
|
|
json-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ linsui ericsagnes ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|