feat: Flake
This commit is contained in:
13
README.md
13
README.md
@@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user