1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/inputmethods/ibus-engines/ibus-hangul/default.nix

56 lines
1 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
, substituteAll
, appstream-glib
, gettext
, pkgconfig
, wrapGAppsHook
, gtk3
, ibus
, libhangul
, python3
}:
2016-02-10 04:34:17 +00:00
stdenv.mkDerivation rec {
pname = "ibus-hangul";
version = "1.5.3";
2016-02-10 04:34:17 +00:00
src = fetchurl {
url = "https://github.com/choehwanjin/ibus-hangul/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "1400ba2p34vr9q285lqvjm73f6m677cgfdymmjpiwyrjgbbiqrjy";
2016-02-10 04:34:17 +00:00
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
libhangul = "${libhangul}/lib/libhangul.so.1";
})
];
nativeBuildInputs = [
appstream-glib
gettext
pkgconfig
wrapGAppsHook
];
2016-02-10 04:34:17 +00:00
buildInputs = [
gtk3
ibus
libhangul
(python3.withPackages (pypkgs: with pypkgs; [
pygobject3
(toPythonModule ibus)
]))
];
2016-02-10 04:34:17 +00:00
meta = with stdenv.lib; {
2016-02-10 07:10:35 +00:00
isIbusEngine = true;
description = "Ibus Hangul engine";
homepage = https://github.com/choehwanjin/ibus-hangul;
license = licenses.gpl2;
maintainers = with maintainers; [ ericsagnes ];
platforms = platforms.linux;
2016-02-10 04:34:17 +00:00
};
}