mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
43 lines
1.5 KiB
Nix
43 lines
1.5 KiB
Nix
let
|
|
sources = import ../../../npins;
|
|
lib = import (sources.nixpkgs + "/lib");
|
|
|
|
infuse-lib = import sources.infuse {
|
|
inherit lib;
|
|
sugars = infuse-lib.v1.default-sugars;
|
|
};
|
|
|
|
infuse = lib.flip infuse-lib.v1.infuse;
|
|
in
|
|
final:
|
|
infuse {
|
|
# I don't really use helix, but it's nice to have the W alias just in case
|
|
helix.__output.patches.__append = [
|
|
./patches/helix/W-as-write.patch
|
|
];
|
|
|
|
fcitx5.__output.cmakeFlags.__append = [
|
|
(lib.cmakeFeature "ENABLE_EMOJI" "Off")
|
|
(lib.cmakeFeature "ENABLE_WAYLAND" "Off")
|
|
];
|
|
fcitx5.__output.patches.__append = [
|
|
./patches/fcitx5/disable-clipboard.patch
|
|
./patches/fcitx5/disable-quickphrase.patch
|
|
./patches/fcitx5/disable-unicode.patch
|
|
];
|
|
qt6Packages.fcitx5-chinese-addons.__output.cmakeFlags.__append = [
|
|
(lib.cmakeFeature "ENABLE_BROWSER" "Off")
|
|
(lib.cmakeFeature "ENABLE_CLOUDPINYIN" "Off") # c.f. patch below
|
|
(lib.cmakeFeature "ENABLE_DATA" "Off")
|
|
];
|
|
qt6Packages.fcitx5-chinese-addons.__output.patches.__append = [
|
|
./patches/fcitx5-chinese-addons/disable-chttrans.patch
|
|
./patches/fcitx5-chinese-addons/disable-fullwidth.patch
|
|
(final.fetchpatch {
|
|
name = "cloudpinyin-disable-build"; # without this the option would fail
|
|
url = "https://github.com/fcitx/fcitx5-chinese-addons/commit/92ffd494273a5573347c1fe2667fb8d67a5303db.patch";
|
|
hash = "sha256-Mo5l8tsn1JQxTFHxOZfQRmbCeWZHLyxfn2Qwv/gQXGA=";
|
|
})
|
|
# Note: disabling pinyin helper breaks canjie
|
|
];
|
|
}
|