2021-09-26 09:08:45 +00:00
|
|
|
{
|
|
|
|
test.stubs = {
|
|
|
|
fcitx5 = {
|
|
|
|
version = "0";
|
|
|
|
outPath = null;
|
|
|
|
buildScript = ''
|
2024-06-07 04:20:00 +00:00
|
|
|
mkdir -p $out/bin $out/share/applications $out/share/dbus-1/services $out/etc/xdg/autostart
|
2021-09-26 09:08:45 +00:00
|
|
|
touch $out/bin/fcitx5 \
|
2023-08-16 20:41:11 +00:00
|
|
|
$out/bin/fcitx5-config-qt \
|
2021-09-26 09:08:45 +00:00
|
|
|
$out/share/applications/org.fcitx.Fcitx5.desktop \
|
2024-06-07 04:20:00 +00:00
|
|
|
$out/share/dbus-1/services/org.fcitx.Fcitx5.service \
|
2021-09-26 09:08:45 +00:00
|
|
|
$out/etc/xdg/autostart/org.fcitx.Fcitx5.desktop
|
2024-06-07 04:20:00 +00:00
|
|
|
# The grep usage of fcitx5-with-addons expects one of the files to match with the fcitx5.out
|
|
|
|
# https://github.com/NixOS/nixpkgs/blob/d2eb4be48705289791428c07aca8ff654c1422ba/pkgs/tools/inputmethods/fcitx5/with-addons.nix#L40-L44
|
|
|
|
echo $out >> $out/etc/xdg/autostart/org.fcitx.Fcitx5.desktop
|
2023-08-16 20:41:11 +00:00
|
|
|
chmod +x $out/bin/fcitx5 \
|
|
|
|
$out/bin/fcitx5-config-qt
|
2021-09-26 09:08:45 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
fcitx5-lua = { outPath = null; };
|
|
|
|
fcitx5-gtk = { outPath = null; };
|
2024-02-03 18:39:45 +00:00
|
|
|
|
|
|
|
gtk2 = {
|
|
|
|
buildScript = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
echo '#/usr/bin/env bash' > $out/bin/gtk-query-immodules-2.0
|
|
|
|
chmod +x $out/bin/*
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
gtk3 = {
|
|
|
|
buildScript = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
echo '#/usr/bin/env bash' > $out/bin/gtk-query-immodules-3.0
|
|
|
|
chmod +x $out/bin/*
|
|
|
|
'';
|
|
|
|
};
|
2021-09-26 09:08:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
2024-03-05 21:53:10 +00:00
|
|
|
(final: prev: {
|
|
|
|
libsForQt5 = prev.libsForQt5.overrideScope (qt5final: qt5prev: {
|
|
|
|
fcitx5-chinese-addons = prev.mkStubPackage { outPath = null; };
|
|
|
|
fcitx5-configtool = prev.mkStubPackage { outPath = null; };
|
|
|
|
fcitx5-qt = prev.mkStubPackage { outPath = null; };
|
|
|
|
|
|
|
|
fcitx5-with-addons = qt5prev.fcitx5-with-addons.override {
|
|
|
|
inherit (final) libsForQt5 qt6Packages;
|
|
|
|
};
|
2024-03-02 20:52:18 +00:00
|
|
|
});
|
|
|
|
|
2024-03-05 21:53:10 +00:00
|
|
|
qt6Packages = prev.qt6Packages.overrideScope (qt6final: qt6prev: {
|
|
|
|
fcitx5-qt = prev.mkStubPackage { outPath = null; };
|
2024-03-02 20:52:18 +00:00
|
|
|
});
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|