2021-09-26 11:08:45 +02:00
|
|
|
{
|
|
|
|
test.stubs = {
|
|
|
|
fcitx5 = {
|
|
|
|
version = "0";
|
|
|
|
outPath = null;
|
|
|
|
buildScript = ''
|
|
|
|
mkdir -p $out/bin $out/share/applications $out/etc/xdg/autostart
|
|
|
|
touch $out/bin/fcitx5 \
|
2023-08-16 22:41:11 +02:00
|
|
|
$out/bin/fcitx5-config-qt \
|
2021-09-26 11:08:45 +02:00
|
|
|
$out/share/applications/org.fcitx.Fcitx5.desktop \
|
|
|
|
$out/etc/xdg/autostart/org.fcitx.Fcitx5.desktop
|
2023-08-16 22:41:11 +02:00
|
|
|
chmod +x $out/bin/fcitx5 \
|
|
|
|
$out/bin/fcitx5-config-qt
|
2021-09-26 11:08:45 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
fcitx5-configtool = { outPath = null; };
|
|
|
|
fcitx5-lua = { outPath = null; };
|
|
|
|
fcitx5-gtk = { outPath = null; };
|
|
|
|
fcitx5-chinese-addons = { outPath = null; };
|
2024-02-03 19:39:45 +01: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 11:08:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
2024-03-02 21:52:18 +01:00
|
|
|
(final: super: {
|
|
|
|
libsForQt5 = super.libsForQt5.overrideScope' (qt5prev: qt5final: {
|
|
|
|
fcitx5-qt = super.mkStubPackage { outPath = null; };
|
|
|
|
});
|
|
|
|
|
|
|
|
qt6Packages = super.qt6Packages.overrideScope' (qt6prev: qt6final: {
|
|
|
|
fcitx5-qt = super.mkStubPackage { outPath = null; };
|
|
|
|
});
|
|
|
|
|
|
|
|
fcitx5-with-addons = super.fcitx5-with-addons.override {
|
|
|
|
inherit (final) libsForQt5 qt6Packages;
|
|
|
|
};
|
2021-09-26 11:08:45 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|