2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-10-27 15:04:26 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
2021-01-17 09:17:16 +00:00
|
|
|
, pkg-config
|
2019-10-27 15:04:26 +00:00
|
|
|
, ibus
|
|
|
|
, gtk3
|
|
|
|
, m17n_lib
|
|
|
|
, m17n_db
|
|
|
|
, gettext
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
2016-02-28 13:10:11 +00:00
|
|
|
}:
|
2016-02-20 01:49:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ibus-m17n";
|
2022-02-23 20:44:28 +00:00
|
|
|
version = "1.4.9";
|
2016-02-20 01:49:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-10-27 15:04:26 +00:00
|
|
|
owner = "ibus";
|
|
|
|
repo = "ibus-m17n";
|
|
|
|
rev = version;
|
2022-02-23 20:44:28 +00:00
|
|
|
sha256 = "sha256-N9hzyu2etbxlJPD2yUc2T0jxAfhEhshQ8X5R27JBg1E=";
|
2016-02-20 01:49:35 +00:00
|
|
|
};
|
|
|
|
|
2019-10-27 15:04:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
2021-01-17 09:17:16 +00:00
|
|
|
pkg-config
|
2019-10-27 15:04:26 +00:00
|
|
|
wrapGAppsHook
|
2016-02-20 01:49:35 +00:00
|
|
|
];
|
|
|
|
|
2019-10-27 15:04:26 +00:00
|
|
|
buildInputs = [
|
|
|
|
ibus
|
|
|
|
gtk3
|
|
|
|
m17n_lib
|
|
|
|
m17n_db
|
|
|
|
(python3.withPackages (ps: [
|
|
|
|
ps.pygobject3
|
|
|
|
(ps.toPythonModule ibus)
|
|
|
|
]))
|
|
|
|
];
|
2017-03-25 20:53:14 +00:00
|
|
|
|
2019-10-27 15:04:26 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-gtk=3.0"
|
|
|
|
];
|
2016-02-20 01:49:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-02-20 01:49:35 +00:00
|
|
|
isIbusEngine = true;
|
2019-10-27 15:04:26 +00:00
|
|
|
description = "m17n engine for ibus";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ibus/ibus-m17n";
|
2022-02-23 20:44:28 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-10-27 15:04:26 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
2016-02-20 01:49:35 +00:00
|
|
|
};
|
|
|
|
}
|