depot/third_party/nixpkgs/pkgs/tools/inputmethods/ibus-engines/ibus-hangul/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

62 lines
1.1 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
, substituteAll
, appstream-glib
, gettext
, pkg-config
, wrapGAppsHook3
, gobject-introspection
, autoreconfHook
, gtk3
, ibus
, libhangul
, python3
}:
stdenv.mkDerivation rec {
pname = "ibus-hangul";
version = "1.5.5";
src = fetchFromGitHub {
owner = "libhangul";
repo = "ibus-hangul";
rev = version;
hash = "sha256-x2oOW8eiEuwmdCGUo+r/KcsitfGccSyianwIEaOBS3M=";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
libhangul = "${libhangul}/lib/libhangul.so.1";
})
];
nativeBuildInputs = [
appstream-glib
gettext
pkg-config
wrapGAppsHook3
gobject-introspection.setupHook
autoreconfHook
];
buildInputs = [
gtk3
ibus
libhangul
(python3.withPackages (pypkgs: with pypkgs; [
pygobject3
(toPythonModule ibus)
]))
];
meta = with lib; {
isIbusEngine = true;
description = "Ibus Hangul engine";
mainProgram = "ibus-setup-hangul";
homepage = "https://github.com/libhangul/ibus-hangul";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ericsagnes ];
platforms = platforms.linux;
};
}