aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/inputmethods/fcitx-engines/fcitx-hangul/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/tools/inputmethods/fcitx-engines/fcitx-hangul/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/tools/inputmethods/fcitx-engines/fcitx-hangul/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/inputmethods/fcitx-engines/fcitx-hangul/default.nix b/infra/libkookie/nixpkgs/pkgs/tools/inputmethods/fcitx-engines/fcitx-hangul/default.nix
new file mode 100644
index 000000000000..c9a40b84a6d9
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/tools/inputmethods/fcitx-engines/fcitx-hangul/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, cmake, fcitx, libhangul, gettext, pkgconfig }:
+
+stdenv.mkDerivation rec {
+ pname = "fcitx-hangul";
+ version = "0.3.1";
+
+ src = fetchurl {
+ url = "http://download.fcitx-im.org/fcitx-hangul/${pname}-${version}.tar.xz";
+ sha256 = "0ds4071ljq620w7vnprm2jl8zqqkw7qsxvzbjapqak4jarczvmbd";
+ };
+
+ nativeBuildInputs = [ pkgconfig ];
+ buildInputs = [ cmake fcitx libhangul gettext ];
+
+ preInstall = ''
+ substituteInPlace src/cmake_install.cmake \
+ --replace ${fcitx} $out
+ substituteInPlace data/cmake_install.cmake \
+ --replace ${fcitx} $out
+ '';
+
+ meta = with stdenv.lib; {
+ isFcitxEngine = true;
+ homepage = "https://github.com/fcitx/fcitx-hangul";
+ downloadPage = "http://download.fcitx-im.org/fcitx-hangul/";
+ description = "Fcitx Wrapper for hangul";
+ license = licenses.gpl2;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ ericsagnes ];
+ };
+}