feat: Add rime-all package for all rime plugins
This commit is contained in:
parent
7be2edee33
commit
fe6e4f4c0b
8 changed files with 31 additions and 18 deletions
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
osConfig ? null,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
config = lib.mkIf (osConfig != null) {
|
|
||||||
xdg.dataFile = {
|
|
||||||
"fcitx5/rime/default.custom.yaml".source = ./default.custom.yaml;
|
|
||||||
"fcitx5/rime/double_pinyin_flypy.custom.yaml".source = ./double_pinyin_flypy.custom.yaml;
|
|
||||||
"fcitx5/rime/yustar_sc.custom.yaml".source = ./yustar_sc.custom.yaml;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -37,10 +37,7 @@ in
|
||||||
fcitx5-fluent
|
fcitx5-fluent
|
||||||
(fcitx5-rime.override {
|
(fcitx5-rime.override {
|
||||||
rimeDataPkgs = [
|
rimeDataPkgs = [
|
||||||
rime-ice
|
rime-all
|
||||||
rime-zhwiki
|
|
||||||
rime-moegirl
|
|
||||||
rime-yuhaostar
|
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ in
|
||||||
./editor-runtime.nix
|
./editor-runtime.nix
|
||||||
./wallpapers.nix
|
./wallpapers.nix
|
||||||
./rime-yuhaostar.nix
|
./rime-yuhaostar.nix
|
||||||
|
./rime-all.nix
|
||||||
./nixvim.nix
|
./nixvim.nix
|
||||||
./doom-emacs.nix
|
./doom-emacs.nix
|
||||||
./osu-lazer-bin.nix # typochecker: disable-line
|
./osu-lazer-bin.nix # typochecker: disable-line
|
||||||
|
|
|
||||||
8
overlays/additions/rime-all.nix
Normal file
8
overlays/additions/rime-all.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ outputs, ... }:
|
||||||
|
_final: prev:
|
||||||
|
let
|
||||||
|
inherit (prev.stdenv.hostPlatform) system;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
inherit (outputs.packages.${system}) rime-all;
|
||||||
|
}
|
||||||
21
pkgs/rime-all/package.nix
Normal file
21
pkgs/rime-all/package.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
rime-ice,
|
||||||
|
rime-yuhaostar,
|
||||||
|
rime-moegirl,
|
||||||
|
rime-zhwiki,
|
||||||
|
buildEnv,
|
||||||
|
}:
|
||||||
|
buildEnv {
|
||||||
|
name = "rime-all";
|
||||||
|
paths = [
|
||||||
|
rime-ice
|
||||||
|
rime-yuhaostar
|
||||||
|
rime-zhwiki
|
||||||
|
rime-moegirl
|
||||||
|
];
|
||||||
|
postBuild = ''
|
||||||
|
ln -s ${./yustar_sc.custom.yaml} $out/share/rime-data/yustar_sc.custom.yaml
|
||||||
|
ln -s ${./double_pinyin_flypy.custom.yaml} $out/share/rime-data/double_pinyin_flypy.custom.yaml
|
||||||
|
ln -s ${./default.custom.yaml} $out/share/rime-data/default.custom.yaml
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue