diff --git a/pkgs/applications/networking/mailreaders/tutanota-desktop/default.nix b/pkgs/applications/networking/mailreaders/tutanota-desktop/default.nix index 55b19785e448..95357df6af97 100644 --- a/pkgs/applications/networking/mailreaders/tutanota-desktop/default.nix +++ b/pkgs/applications/networking/mailreaders/tutanota-desktop/default.nix @@ -1,15 +1,16 @@ { lib , appimageTools , fetchurl +, gitUpdater }: appimageTools.wrapType2 rec { pname = "tutanota-desktop"; - version = "235.240718.0"; + version = "250.241025.0"; src = fetchurl { url = "https://github.com/tutao/tutanota/releases/download/tutanota-desktop-release-${version}/tutanota-desktop-linux.AppImage"; - hash = "sha256-Pycz05cwse2SUvJlaCXMA1/Trdt6ZGOJK3NRSPb6/VM="; + hash = "sha256-PhcrDjqRmR1NVBLVCuj5dcc+WskWeZ9dJXdtOUveyL0="; }; extraPkgs = pkgs: [ pkgs.libsecret ]; @@ -24,6 +25,12 @@ appimageTools.wrapType2 rec { --replace 'Exec=AppRun' 'Exec=${pname}' ''; + passthru.updateScript = gitUpdater { + url = "https://github.com/tutao/tutanota"; + rev-prefix = "tutanota-desktop-release-"; + allowedVersions = ".+\\.[0-9]{6}\\..+"; + }; + meta = with lib; { description = "Tuta official desktop client"; homepage = "https://tuta.com/";