fix(fcitx5/overlay): qq

This commit is contained in:
2025-08-15 20:12:15 +08:00
parent 8080d174ae
commit 1da80c49db

View File

@@ -107,7 +107,11 @@ lib.my.makeSwitch {
lib.mergeAttrsList ( lib.mergeAttrsList (
map map
( (
{ pkg, exe }: {
pkg,
exe,
desktop,
}:
{ {
${pkg} = final.stdenvNoCC.mkDerivation { ${pkg} = final.stdenvNoCC.mkDerivation {
@@ -120,8 +124,8 @@ lib.my.makeSwitch {
nativeBuildInputs = [ final.makeWrapper ]; nativeBuildInputs = [ final.makeWrapper ];
installPhase = '' installPhase = ''
cp -r . $out cp -r . $out
mv $out/bin/${exe} $out/bin/.${exe}-old substituteInPlace $out/share/applications/${desktop}.desktop --replace-quiet "${prev.${pkg}}" $out
makeWrapper $out/bin/.${exe}-old $out/bin/${exe} --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--wayland-text-input-version=3}}" wrapProgram $out/bin/${exe} --add-flags "--wayland-text-input-version=3"
''; '';
}; };
} }
@@ -130,14 +134,17 @@ lib.my.makeSwitch {
{ {
pkg = "qq"; pkg = "qq";
exe = "qq"; exe = "qq";
desktop = "qq";
} }
{ {
pkg = "vscodium"; pkg = "vscodium";
exe = "codium"; exe = "codium";
desktop = "codium";
} }
{ {
pkg = "signal-desktop"; pkg = "signal-desktop";
exe = "signal-desktop"; exe = "signal-desktop";
desktop = "signal";
} }
] ]
) )