504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, gettext
|
|
, pkg-config
|
|
, wrapGAppsHook
|
|
, sqlite
|
|
, libpinyin
|
|
, db
|
|
, ibus
|
|
, glib
|
|
, gtk3
|
|
, python3
|
|
, lua
|
|
, opencc
|
|
, libsoup_3
|
|
, json-glib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ibus-libpinyin";
|
|
version = "1.15.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libpinyin";
|
|
repo = "ibus-libpinyin";
|
|
rev = version;
|
|
hash = "sha256-cfV/VBCVtwI4qDwuU2563jMjxQqDs7VXGxkFn4w8IqM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
gettext
|
|
pkg-config
|
|
wrapGAppsHook
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-cloud-input-mode"
|
|
"--enable-opencc"
|
|
];
|
|
|
|
buildInputs = [
|
|
ibus
|
|
glib
|
|
sqlite
|
|
libpinyin
|
|
(python3.withPackages (pypkgs: with pypkgs; [
|
|
pygobject3
|
|
(toPythonModule ibus)
|
|
]))
|
|
gtk3
|
|
db
|
|
lua
|
|
opencc
|
|
libsoup_3
|
|
json-glib
|
|
];
|
|
|
|
meta = with lib; {
|
|
isIbusEngine = true;
|
|
description = "IBus interface to the libpinyin input method";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ linsui ericsagnes ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|