overlays: move fcitx5-table-extra patch to top-level

This commit is contained in:
Primrose 2025-06-20 12:06:21 +02:00
parent 3e916fc7fc
commit 76ed0c10f4
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 32 additions and 11 deletions

View file

@ -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

View file

@ -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
'';
})

View 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
'';
});
}