about summary refs log tree commit diff
path: root/pkgs/tools/inputmethods
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2014-08-27 17:05:14 +0800
committer宋文武 <iyzsong@gmail.com>2014-08-27 17:05:14 +0800
commit92f728d546bba5d2c0e87ff28dd91b4d347b66d9 (patch)
tree50e3148e9c65883156a92b0ed1f670c1d4a44ecd /pkgs/tools/inputmethods
parent6f6724027d10c8989f08df9dc36b09b27152ae36 (diff)
downloadnixlib-92f728d546bba5d2c0e87ff28dd91b4d347b66d9.tar
nixlib-92f728d546bba5d2c0e87ff28dd91b4d347b66d9.tar.gz
nixlib-92f728d546bba5d2c0e87ff28dd91b4d347b66d9.tar.bz2
nixlib-92f728d546bba5d2c0e87ff28dd91b4d347b66d9.tar.lz
nixlib-92f728d546bba5d2c0e87ff28dd91b4d347b66d9.tar.xz
nixlib-92f728d546bba5d2c0e87ff28dd91b4d347b66d9.tar.zst
nixlib-92f728d546bba5d2c0e87ff28dd91b4d347b66d9.zip
add fcitx-anthy
Diffstat (limited to 'pkgs/tools/inputmethods')
-rw-r--r--pkgs/tools/inputmethods/fcitx/fcitx-anthy.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/inputmethods/fcitx/fcitx-anthy.nix b/pkgs/tools/inputmethods/fcitx/fcitx-anthy.nix
new file mode 100644
index 000000000000..2099220f2a1f
--- /dev/null
+++ b/pkgs/tools/inputmethods/fcitx/fcitx-anthy.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl, cmake, fcitx, anthy }:
+
+stdenv.mkDerivation rec {
+  name = "fcitx-anthy-0.2.1";
+
+  meta = with stdenv.lib; {
+    description = "Fcitx Wrapper for anthy";
+    license     = licenses.gpl2Plus;
+    platforms   = platforms.linux;
+    maintainers = with maintainers; [ iyzsong ];
+  };
+
+  src = fetchurl {
+    url = "http://download.fcitx-im.org/fcitx-anthy/${name}.tar.xz";
+    sha256 = "13fpfhhxkzbq53h10i3hifa37nngm47jq361i70z22bgcrs8887x";
+  };
+
+  buildInputs = [ cmake fcitx anthy ];
+
+  preInstall = ''
+    substituteInPlace src/cmake_install.cmake \
+      --replace ${fcitx} $out
+  '';
+}