From 2d5537d89efb93eda88e96beb13ab169f2e08c37 Mon Sep 17 00:00:00 2001 From: Eric Sagnes Date: Sat, 20 Feb 2016 10:22:54 +0900 Subject: [PATCH] fcitx-m17n: init at 0.2.3 --- .../fcitx-engines/fcitx-m17n/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/inputmethods/fcitx-engines/fcitx-m17n/default.nix diff --git a/pkgs/tools/inputmethods/fcitx-engines/fcitx-m17n/default.nix b/pkgs/tools/inputmethods/fcitx-engines/fcitx-m17n/default.nix new file mode 100644 index 000000000000..ff42bbbbcc8e --- /dev/null +++ b/pkgs/tools/inputmethods/fcitx-engines/fcitx-m17n/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, cmake, fcitx, gettext, m17n_lib, m17n_db, pkgconfig }: + +stdenv.mkDerivation rec { + name = "fcitx-m17n-${version}"; + version = "0.2.3"; + + src = fetchurl { + url = "http://download.fcitx-im.org/fcitx-m17n/${name}.tar.xz"; + sha256 = "0ffyhsg7bc6525k94kfhnja1h6ajlfprq72d286dp54cksnakyc4"; + }; + + buildInputs = [ cmake fcitx gettext m17n_lib m17n_db pkgconfig ]; + + preInstall = '' + substituteInPlace im/cmake_install.cmake \ + --replace ${fcitx} $out + ''; + + meta = with stdenv.lib; { + isFcitxEngine = true; + homepage = "https://github.com/fcitx/fcitx-m17n"; + downloadPage = "http://download.fcitx-im.org/fcitx-table-other/"; + description = "Fcitx wrapper for m17n"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ ericsagnes ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db3bc6abdc23..89af7ad5a8c9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1529,6 +1529,8 @@ let hangul = callPackage ../tools/inputmethods/fcitx-engines/fcitx-hangul { }; + m17n = callPackage ../tools/inputmethods/fcitx-engines/fcitx-m17n { }; + mozc = callPackage ../tools/inputmethods/fcitx-engines/fcitx-mozc { inherit (pythonPackages) gyp; };