2024-12-05 19:43:58 +01:00
|
|
|
final: prev: let
|
|
|
|
inherit (prev) lib;
|
|
|
|
|
|
|
|
wrapWithWaylandIMEFlag = pkg: let
|
|
|
|
binaryName = lib.removePrefix "${lib.getBin pkg}/bin/" (lib.getExe pkg);
|
|
|
|
in pkg.overrideAttrs (prev': {
|
|
|
|
postInstall = (prev'.postInstall or "") + ''
|
|
|
|
wrapProgram "$out/bin/${binaryName}" \
|
2024-12-08 13:44:11 +01:00
|
|
|
--add-flags "--enable-wayland-ime --wayland-text-input-version=3"
|
2024-12-05 19:43:58 +01:00
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
|
|
|
programList = [
|
|
|
|
"element-desktop"
|
|
|
|
"vscode"
|
|
|
|
"chromium"
|
|
|
|
"discord"
|
|
|
|
];
|
|
|
|
in
|
|
|
|
lib.genAttrs programList (name: wrapWithWaylandIMEFlag prev.${name})
|