@@ -1,7 +1,9 @@
11{ stdenv
22, fetchurl
3+, substituteAll
34, intltool
45, pkgconfig
6+, wrapGAppsHook
57, gtk3
68, ibus
79, libhangul
@@ -17,21 +19,30 @@ stdenv.mkDerivation rec {
1719 sha256 = "0gha8dfdf54rx8fv3yfikbgdg6lqq6l883lhg7q68ybvkjx9bwbs";
1820 };
1921
22+ patches = [
23+ (substituteAll {
24+ src = ./fix-paths.patch;
25+ libhangul = "${libhangul}/lib/libhangul.so.1";
26+ })
27+ ];
28+
2029 nativeBuildInputs = [
2130 intltool
2231 pkgconfig
2332 python3.pkgs.wrapPython
33+ wrapGAppsHook
2434 ];
2535
2636 buildInputs = [
2737 gtk3
2838 ibus
2939 libhangul
30− python3
40+ (python3.withPackages (pypkgs: with pypkgs; [
41+ pygobject3
42+ (toPythonModule ibus)
43+ ]))
3144 ];
3245
33− postFixup = "wrapPythonPrograms";
34−
3546 meta = with stdenv.lib; {
3647 isIbusEngine = true;
3748 description = "Ibus Hangul engine";