Skip to content

Commit 2dfd62c

Browse files
tutanota-desktop: add electron ozone flags, adopt (#431285)
2 parents 4635cfc + a7cc643 commit 2dfd62c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkgs/by-name/tu/tutanota-desktop/package.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
appimageTools,
44
fetchurl,
5+
makeWrapper,
56
gitUpdater,
67
}:
78

@@ -16,6 +17,8 @@ appimageTools.wrapType2 rec {
1617

1718
extraPkgs = pkgs: [ pkgs.libsecret ];
1819

20+
nativeBuildInputs = [ makeWrapper ];
21+
1922
extraInstallCommands =
2023
let
2124
appimageContents = appimageTools.extract { inherit pname version src; };
@@ -26,6 +29,9 @@ appimageTools.wrapType2 rec {
2629
2730
substituteInPlace $out/share/applications/tutanota-desktop.desktop \
2831
--replace 'Exec=AppRun' 'Exec=${pname}'
32+
33+
wrapProgram $out/bin/tutanota-desktop \
34+
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
2935
'';
3036

3137
passthru.updateScript = gitUpdater {
@@ -40,7 +46,7 @@ appimageTools.wrapType2 rec {
4046
changelog = "https://github.com/tutao/tutanota/releases/tag/tutanota-desktop-release-${version}";
4147
license = lib.licenses.gpl3Only;
4248
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
43-
maintainers = with lib.maintainers; [ ];
49+
maintainers = [ lib.maintainers.awwpotato ];
4450
mainProgram = "tutanota-desktop";
4551
platforms = [ "x86_64-linux" ];
4652
};

0 commit comments

Comments
 (0)