summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/fcitx5/fcitx5-rime-with-nix-env-variable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/inputmethods/fcitx5/fcitx5-rime-with-nix-env-variable.patch')
-rw-r--r--pkgs/tools/inputmethods/fcitx5/fcitx5-rime-with-nix-env-variable.patch18
1 files changed, 0 insertions, 18 deletions
diff --git a/pkgs/tools/inputmethods/fcitx5/fcitx5-rime-with-nix-env-variable.patch b/pkgs/tools/inputmethods/fcitx5/fcitx5-rime-with-nix-env-variable.patch
deleted file mode 100644
index 428a0232dc3..00000000000
--- a/pkgs/tools/inputmethods/fcitx5/fcitx5-rime-with-nix-env-variable.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-:100644 100644 fac4f53 aed9617 M	src/rimeengine.cpp
-
-diff --git a/src/rimeengine.cpp b/src/rimeengine.cpp
-index fac4f53..aed9617 100644
---- a/src/rimeengine.cpp
-+++ b/src/rimeengine.cpp
-@@ -164,7 +164,10 @@ void RimeEngine::rimeStart(bool fullcheck) {
-             RIME_ERROR() << "Failed to create user directory: " << userDir;
-         }
-     }
--    const char *sharedDataDir = RIME_DATA_DIR;
-+    const char *sharedDataDir = getenv("NIX_RIME_DATA_DIR");
-+    if (!sharedDataDir) {
-+        sharedDataDir = RIME_DATA_DIR;
-+    }
- 
-     RIME_STRUCT(RimeTraits, fcitx_rime_traits);
-     fcitx_rime_traits.shared_data_dir = sharedDataDir;