1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 replaceVars,
6 appstream-glib,
7 gettext,
8 pkg-config,
9 wrapGAppsHook3,
10 gobject-introspection,
11 autoreconfHook,
12 gtk3,
13 ibus,
14 libhangul,
15 python3,
16}:
17
18stdenv.mkDerivation rec {
19 pname = "ibus-hangul";
20 version = "1.5.5";
21
22 src = fetchFromGitHub {
23 owner = "libhangul";
24 repo = "ibus-hangul";
25 rev = version;
26 hash = "sha256-x2oOW8eiEuwmdCGUo+r/KcsitfGccSyianwIEaOBS3M=";
27 };
28
29 patches = [
30 (replaceVars ./fix-paths.patch {
31 libhangul = "${libhangul}/lib/libhangul.so.1";
32 })
33 ];
34
35 nativeBuildInputs = [
36 appstream-glib
37 gettext
38 pkg-config
39 wrapGAppsHook3
40 gobject-introspection.setupHook
41 autoreconfHook
42 ];
43
44 buildInputs = [
45 gtk3
46 ibus
47 libhangul
48 (python3.withPackages (
49 pypkgs: with pypkgs; [
50 pygobject3
51 (toPythonModule ibus)
52 ]
53 ))
54 ];
55
56 meta = with lib; {
57 isIbusEngine = true;
58 description = "Ibus Hangul engine";
59 mainProgram = "ibus-setup-hangul";
60 homepage = "https://github.com/libhangul/ibus-hangul";
61 license = licenses.gpl2Plus;
62 maintainers = with maintainers; [ ];
63 platforms = platforms.linux;
64 };
65}