@@ -1,5 +1,13 @@
1−{ stdenv, fetchurl, intltool, pkgconfig
2−, gtk3, ibus, libhangul, python3
1+{ stdenv
2+, fetchurl
3+, substituteAll
4+, intltool
5+, pkgconfig
6+, wrapGAppsHook
7+, gtk3
8+, ibus
9+, libhangul
10+, python3
311}:
412
513stdenv.mkDerivation rec {
@@ -11,18 +19,36 @@ stdenv.mkDerivation rec {
1119 sha256 = "0gha8dfdf54rx8fv3yfikbgdg6lqq6l883lhg7q68ybvkjx9bwbs";
1220 };
1321
14− buildInputs = [ gtk3 ibus libhangul python3 ];
22+ patches = [
23+ (substituteAll {
24+ src = ./fix-paths.patch;
25+ libhangul = "${libhangul}/lib/libhangul.so.1";
26+ })
27+ ];
1528
16− nativeBuildInputs = [ intltool pkgconfig python3.pkgs.wrapPython ];
29+ nativeBuildInputs = [
30+ intltool
31+ pkgconfig
32+ python3.pkgs.wrapPython
33+ wrapGAppsHook
34+ ];
1735
18− postFixup = "wrapPythonPrograms";
36+ buildInputs = [
37+ gtk3
38+ ibus
39+ libhangul
40+ (python3.withPackages (pypkgs: with pypkgs; [
41+ pygobject3
42+ (toPythonModule ibus)
43+ ]))
44+ ];
1945
2046 meta = with stdenv.lib; {
2147 isIbusEngine = true;
22− description = "Ibus Hangul engine";
23− homepage = https://github.com/choehwanjin/ibus-hangul;
24− license = licenses.gpl2;
25− platforms = platforms.linux;
26− maintainers = with maintainers; [ ericsagnes ];
48+ description = "Ibus Hangul engine";
49+ homepage = https://github.com/choehwanjin/ibus-hangul;
50+ license = licenses.gpl2;
51+ maintainers = with maintainers; [ ericsagnes ];
52+ platforms = platforms.linux;
2753 };
2854}