tutanota-desktop: add electron ozone flags, adopt (#431285)

authored by Fernando Rodrigues and committed by GitHub 2dfd62cb 4635cfca

+7 -1
+7 -1
pkgs/by-name/tu/tutanota-desktop/package.nix
··· 2 2 lib, 3 3 appimageTools, 4 4 fetchurl, 5 + makeWrapper, 5 6 gitUpdater, 6 7 }: 7 8 ··· 16 17 17 18 extraPkgs = pkgs: [ pkgs.libsecret ]; 18 19 20 + nativeBuildInputs = [ makeWrapper ]; 21 + 19 22 extraInstallCommands = 20 23 let 21 24 appimageContents = appimageTools.extract { inherit pname version src; }; ··· 26 29 27 30 substituteInPlace $out/share/applications/tutanota-desktop.desktop \ 28 31 --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}}" 29 35 ''; 30 36 31 37 passthru.updateScript = gitUpdater { ··· 40 46 changelog = "https://github.com/tutao/tutanota/releases/tag/tutanota-desktop-release-${version}"; 41 47 license = lib.licenses.gpl3Only; 42 48 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 43 - maintainers = with lib.maintainers; [ ]; 49 + maintainers = [ lib.maintainers.awwpotato ]; 44 50 mainProgram = "tutanota-desktop"; 45 51 platforms = [ "x86_64-linux" ]; 46 52 };