a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, substituteAll
|
|
, appstream-glib
|
|
, gettext
|
|
, pkgconfig
|
|
, wrapGAppsHook
|
|
, gtk3
|
|
, ibus
|
|
, libhangul
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ibus-hangul";
|
|
version = "1.5.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/choehwanjin/ibus-hangul/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "1q6g2pnrn5gqn9jqnm3975v9hh60hc5gn9x3zbrdjgy0n3wpxwm9";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-paths.patch;
|
|
libhangul = "${libhangul}/lib/libhangul.so.1";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib
|
|
gettext
|
|
pkgconfig
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
ibus
|
|
libhangul
|
|
(python3.withPackages (pypkgs: with pypkgs; [
|
|
pygobject3
|
|
(toPythonModule ibus)
|
|
]))
|
|
];
|
|
|
|
meta = with lib; {
|
|
isIbusEngine = true;
|
|
description = "Ibus Hangul engine";
|
|
homepage = "https://github.com/choehwanjin/ibus-hangul";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|