mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
overlays: move fcitx5-table-extra patch to top-level
This commit is contained in:
parent
3e916fc7fc
commit
76ed0c10f4
4 changed files with 32 additions and 11 deletions
|
|
@ -49,6 +49,7 @@ in
|
|||
../overlays/nix-tree.nix
|
||||
../overlays/wallpapers.nix
|
||||
../overlays/nil.nix
|
||||
../overlays/fcitx5-table-extra-taiwanese.nix
|
||||
|
||||
../overlays/iosevka.nix
|
||||
../packages/overlay.nix
|
||||
|
|
|
|||
|
|
@ -47,15 +47,4 @@ in
|
|||
./patches/fcitx5-chinese-addons/disable-fullwidth.patch
|
||||
# Note: disabling pinyin helper breaks canjie
|
||||
];
|
||||
fcitx5-table-extra.__output.src = _: final.fetchFromGitHub {
|
||||
owner = "leana8959";
|
||||
repo = "fcitx5-table-extra";
|
||||
rev = "3fb844280a5154389be17e422a98ad89cafccc38";
|
||||
hash = "sha256-8iGNQYQH8tT3p6VedVBgfxHqXVLkFEiDEd1H7CBFXqg=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
fcitx5-table-extra.__output.nativeBuildInputs.__append = [ final.python3 ];
|
||||
fcitx5-table-extra.__output.preConfigure.__prepend = ''
|
||||
python3 ./generate.py
|
||||
'';
|
||||
})
|
||||
|
|
|
|||
18
nix/overlays/fcitx5-table-extra-taiwanese.nix
Normal file
18
nix/overlays/fcitx5-table-extra-taiwanese.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
let
|
||||
sources = import ../sources.nix;
|
||||
in
|
||||
final: prev: {
|
||||
fcitx5-table-extra = prev.fcitx5-table-extra.overrideAttrs (oldAttrs: {
|
||||
src = sources.fcitx5-table-extra;
|
||||
nativeBuildInputs =
|
||||
oldAttrs.nativeBuildInputs or []
|
||||
++ [
|
||||
final.python3
|
||||
];
|
||||
preConfigure =
|
||||
oldAttrs.preConfigure or ""
|
||||
+ ''
|
||||
python3 ./generate.py
|
||||
'';
|
||||
});
|
||||
}
|
||||
|
|
@ -34,6 +34,19 @@
|
|||
"hash": "13brimg7z7k9y36n4jc1pssqyw94nd8qvgfjv53z66lv4xkhin92",
|
||||
"frozen": true
|
||||
},
|
||||
"fcitx5-table-extra": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
"type": "GitHub",
|
||||
"owner": "leana8959",
|
||||
"repo": "fcitx5-table-extra"
|
||||
},
|
||||
"branch": "taiwanese",
|
||||
"submodules": true,
|
||||
"revision": "48a7a51516302e070479156b54d2911ba9fbfce8",
|
||||
"url": null,
|
||||
"hash": "07d2mzjnggbxlpqarcj65xdndkqxcab38lkbbqh65cyfqzqahdg0"
|
||||
},
|
||||
"home-manager": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue