8 appimageTools.wrapType2 rec {
9 pname = "tutanota-desktop";
10 version = "259.241223.0";
13 url = "https://github.com/tutao/tutanota/releases/download/tutanota-desktop-release-${version}/tutanota-desktop-linux.AppImage";
14 hash = "sha256-PfgdYKy3JfId04hu8qrNhmdpwOmyfsfz7Bk7KpLTdzk=";
17 extraPkgs = pkgs: [ pkgs.libsecret ];
19 extraInstallCommands =
21 appimageContents = appimageTools.extract { inherit pname version src; };
24 install -Dm 444 ${appimageContents}/tutanota-desktop.desktop -t $out/share/applications
25 install -Dm 444 ${appimageContents}/tutanota-desktop.png -t $out/share/pixmaps
27 substituteInPlace $out/share/applications/tutanota-desktop.desktop \
28 --replace 'Exec=AppRun' 'Exec=${pname}'
31 passthru.updateScript = gitUpdater {
32 url = "https://github.com/tutao/tutanota";
33 rev-prefix = "tutanota-desktop-release-";
34 allowedVersions = ".+\\.[0-9]{6}\\..+";
38 description = "Tuta official desktop client";
39 homepage = "https://tuta.com/";
40 changelog = "https://github.com/tutao/tutanota/releases/tag/tutanota-desktop-release-${version}";
41 license = licenses.gpl3Only;
42 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
44 mainProgram = "tutanota-desktop";
45 platforms = [ "x86_64-linux" ];