feat: Flake

This commit is contained in:
2025-09-04 09:18:54 -06:00
parent 6a30b146f1
commit 147b629caf
5 changed files with 85 additions and 13 deletions

View File

@@ -12,8 +12,7 @@ The CMake code was nabbed directly from https://github.com/fcitx/fcitx5-table-ot
### With Nix
I intend to set up a flake soonish. For now, this can be installed into your
NixOS/Home-manager configs with the following snippet:
This can be installed into your NixOS/Home-manager configs:
```nix
i18n.inputMethod = {
@@ -23,14 +22,8 @@ i18n.inputMethod = {
addons = [
# The package `fcitx5-chinese-addons` is *required*!!
# See https://github.com/NixOS/nixpkgs/issues/126748.
pkgs.libsForQt5.fcitx5-chinese-addons
(let
repo = pkgs.fetchgit {
url = "https://gitlab.com/msyds/syd-fcitx5-tables";
tag = "v1.1.0";
hash = "sha256-Ndm+XUMFmkcrVH9tLvyiXP4gvShx3ELrURYdp2KfOyQ=";
};
in pkgs.callPackage "${repo}/package.nix" {})
pkgs.kdePackages.fcitx5-chinese-addons
inputs.syd-fcitx5-tables.packages.${system}.default
];
};
};