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
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, sqlite
|
|
|
|
, libpinyin
|
|
|
|
, db
|
|
|
|
, ibus
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, python3
|
2022-01-25 03:21:06 +00:00
|
|
|
, lua
|
|
|
|
, opencc
|
|
|
|
, libsoup
|
|
|
|
, json-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ibus-libpinyin";
|
2021-12-24 04:21:11 +00:00
|
|
|
version = "1.12.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libpinyin";
|
|
|
|
repo = "ibus-libpinyin";
|
|
|
|
rev = version;
|
2021-12-24 04:21:11 +00:00
|
|
|
sha256 = "sha256-tSbH4twU+paCZdmzVQMSSg3AzBNkK4nnmOfbvUzvZTk=";
|
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
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
libsoup
|
|
|
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|