2019-09-03 13:36:08 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2019-09-03 13:39:08 +01:00
|
|
|
, substituteAll
|
2019-10-27 14:41:03 +00:00
|
|
|
, appstream-glib
|
|
|
|
, gettext
|
2019-09-03 13:36:08 +01:00
|
|
|
, pkgconfig
|
2019-09-03 13:39:08 +01:00
|
|
|
, wrapGAppsHook
|
2019-09-03 13:36:08 +01:00
|
|
|
, gtk3
|
|
|
|
, ibus
|
|
|
|
, libhangul
|
|
|
|
, python3
|
2016-02-26 23:30:59 +00:00
|
|
|
}:
|
2016-02-10 04:34:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ibus-hangul";
|
2019-10-27 14:41:03 +00:00
|
|
|
version = "1.5.3";
|
2016-02-10 04:34:17 +00:00
|
|
|
|
2016-02-26 23:30:59 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://github.com/choehwanjin/ibus-hangul/releases/download/${version}/${pname}-${version}.tar.gz";
|
2019-10-27 14:41:03 +00:00
|
|
|
sha256 = "1400ba2p34vr9q285lqvjm73f6m677cgfdymmjpiwyrjgbbiqrjy";
|
2016-02-10 04:34:17 +00:00
|
|
|
};
|
|
|
|
|
2019-09-03 13:39:08 +01:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
libhangul = "${libhangul}/lib/libhangul.so.1";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-09-03 13:36:08 +01:00
|
|
|
nativeBuildInputs = [
|
2019-10-27 14:41:03 +00:00
|
|
|
appstream-glib
|
|
|
|
gettext
|
2019-09-03 13:36:08 +01:00
|
|
|
pkgconfig
|
2019-09-03 13:39:08 +01:00
|
|
|
wrapGAppsHook
|
2019-09-03 13:36:08 +01:00
|
|
|
];
|
2016-02-10 04:34:17 +00:00
|
|
|
|
2019-09-03 13:36:08 +01:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
ibus
|
|
|
|
libhangul
|
2019-09-03 13:39:08 +01:00
|
|
|
(python3.withPackages (pypkgs: with pypkgs; [
|
|
|
|
pygobject3
|
|
|
|
(toPythonModule ibus)
|
|
|
|
]))
|
2019-09-03 13:36:08 +01:00
|
|
|
];
|
2017-03-25 20:53:14 +00:00
|
|
|
|
2016-02-10 04:34:17 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-02-10 07:10:35 +00:00
|
|
|
isIbusEngine = true;
|
2019-09-03 13:36:08 +01:00
|
|
|
description = "Ibus Hangul engine";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/choehwanjin/ibus-hangul";
|
2019-09-03 13:36:08 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
platforms = platforms.linux;
|
2016-02-10 04:34:17 +00:00
|
|
|
};
|
|
|
|
}
|