about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPoscat <poscat@mail.poscat.moe>2020-12-13 11:16:03 +0800
committerPoscat <poscat@mail.poscat.moe>2021-01-10 14:31:03 +0800
commitea503004994399098189d5b7662fbf61def8ab6f (patch)
treec6160019f53e54f3298f0fd7fa3e27216ef0109f
parent1da3fbf0ebb0ec4ecd2fd1d20ba789f303758ab4 (diff)
downloadnixlib-ea503004994399098189d5b7662fbf61def8ab6f.tar
nixlib-ea503004994399098189d5b7662fbf61def8ab6f.tar.gz
nixlib-ea503004994399098189d5b7662fbf61def8ab6f.tar.bz2
nixlib-ea503004994399098189d5b7662fbf61def8ab6f.tar.lz
nixlib-ea503004994399098189d5b7662fbf61def8ab6f.tar.xz
nixlib-ea503004994399098189d5b7662fbf61def8ab6f.tar.zst
nixlib-ea503004994399098189d5b7662fbf61def8ab6f.zip
fcitx5-rime: Init at 5.0.2
-rw-r--r--pkgs/tools/inputmethods/fcitx5/fcitx5-rime.nix47
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/tools/inputmethods/fcitx5/fcitx5-rime.nix b/pkgs/tools/inputmethods/fcitx5/fcitx5-rime.nix
new file mode 100644
index 000000000000..9992e1987589
--- /dev/null
+++ b/pkgs/tools/inputmethods/fcitx5/fcitx5-rime.nix
@@ -0,0 +1,47 @@
+{ stdenv
+, fetchurl
+, fetchFromGitHub
+, pkgconfig
+, cmake
+, extra-cmake-modules
+, gettext
+, fcitx5
+, librime
+, brise
+}:
+
+stdenv.mkDerivation rec {
+  pname = "fcitx5-rime";
+  version = "5.0.2";
+
+  src = fetchFromGitHub {
+    owner = "fcitx";
+    repo = "fcitx5-rime";
+    rev = version;
+    sha256 = "cVCTsD1Iw6OtyYFpxff3ix2CubRTnDaBevAYA4I9Ai8=";
+  };
+
+  cmakeFlags = [
+    "-DRIME_DATA_DIR=${brise}/share/rime-data"
+  ];
+
+  nativeBuildInputs = [
+    cmake
+    extra-cmake-modules
+    pkgconfig
+    gettext
+  ];
+
+  buildInputs = [
+    fcitx5
+    librime
+  ];
+
+  meta = with stdenv.lib; {
+    description = "RIME support for Fcitx5";
+    homepage = "https://github.com/fcitx/fcitx5-rime";
+    license = licenses.lgpl21Plus;
+    maintainers = with maintainers; [ poscat ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index ea8f4572aa27..f1da7ddaddc7 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3938,6 +3938,8 @@ in
 
   fcitx5-gtk = callPackage ../tools/inputmethods/fcitx5/fcitx5-gtk.nix { };
 
+  fcitx5-rime = callPackage ../tools/inputmethods/fcitx5/fcitx5-rime.nix { };
+
   fcppt = callPackage ../development/libraries/fcppt { };
 
   fcrackzip = callPackage ../tools/security/fcrackzip { };