mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 11:03:13 +00:00
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{
|
|
test.stubs = {
|
|
fcitx5 = {
|
|
version = "0";
|
|
outPath = null;
|
|
buildScript = ''
|
|
mkdir -p $out/bin $out/share/applications $out/etc/xdg/autostart
|
|
touch $out/bin/fcitx5 \
|
|
$out/bin/fcitx5-config-qt \
|
|
$out/share/applications/org.fcitx.Fcitx5.desktop \
|
|
$out/etc/xdg/autostart/org.fcitx.Fcitx5.desktop
|
|
chmod +x $out/bin/fcitx5 \
|
|
$out/bin/fcitx5-config-qt
|
|
'';
|
|
};
|
|
fcitx5-configtool = { outPath = null; };
|
|
fcitx5-lua = { outPath = null; };
|
|
fcitx5-gtk = { outPath = null; };
|
|
fcitx5-chinese-addons = { outPath = null; };
|
|
|
|
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/*
|
|
'';
|
|
};
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(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;
|
|
};
|
|
})
|
|
];
|
|
}
|