2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-02-05 17:12:51 +00:00
|
|
|
, vala, intltool, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, libkkc, ibus, skk-dicts
|
|
|
|
, gtk3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ibus-kkc";
|
|
|
|
version = "1.5.22";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1kj74c9zy9yxkjx7pz96mzqc13cf10yfmlgprr8sfd4ay192bzi2";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
vala intltool pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ libkkc ibus skk-dicts gtk3 ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s ${skk-dicts}/share $out/share/skk
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
isIbusEngine = true;
|
|
|
|
description = "libkkc (Japanese Kana Kanji input method) engine for ibus";
|
|
|
|
homepage = "https://github.com/ueno/ibus-kkc";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ vanzef ];
|
|
|
|
};
|
|
|
|
}
|