2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, substituteAll
|
|
|
|
, appstream-glib
|
|
|
|
, gettext
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
|
|
|
, ibus
|
|
|
|
, libhangul
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ibus-hangul";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.5.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-15 15:35:15 +00:00
|
|
|
url = "https://github.com/libhangul/ibus-hangul/releases/download/${version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-parIgobNGJYCKYYOPhp3iXinrqpIStms+kgoS4f9w7s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
libhangul = "${libhangul}/lib/libhangul.so.1";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
gettext
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
ibus
|
|
|
|
libhangul
|
|
|
|
(python3.withPackages (pypkgs: with pypkgs; [
|
|
|
|
pygobject3
|
|
|
|
(toPythonModule ibus)
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
isIbusEngine = true;
|
|
|
|
description = "Ibus Hangul engine";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ibus-setup-hangul";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/libhangul/ibus-hangul";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|