f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
62 lines
1.1 KiB
Nix
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;
|
|
};
|
|
}
|