dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / by-name / tu / tutanota-desktop / package.nix
blob7c0470e6bafa90f7f179a22b4c80c5bbe6d0d46f
2   lib,
3   appimageTools,
4   fetchurl,
5   gitUpdater,
6 }:
8 appimageTools.wrapType2 rec {
9   pname = "tutanota-desktop";
10   version = "259.241223.0";
12   src = fetchurl {
13     url = "https://github.com/tutao/tutanota/releases/download/tutanota-desktop-release-${version}/tutanota-desktop-linux.AppImage";
14     hash = "sha256-PfgdYKy3JfId04hu8qrNhmdpwOmyfsfz7Bk7KpLTdzk=";
15   };
17   extraPkgs = pkgs: [ pkgs.libsecret ];
19   extraInstallCommands =
20     let
21       appimageContents = appimageTools.extract { inherit pname version src; };
22     in
23     ''
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}'
29     '';
31   passthru.updateScript = gitUpdater {
32     url = "https://github.com/tutao/tutanota";
33     rev-prefix = "tutanota-desktop-release-";
34     allowedVersions = ".+\\.[0-9]{6}\\..+";
35   };
37   meta = with lib; {
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 ];
43     maintainers = [ ];
44     mainProgram = "tutanota-desktop";
45     platforms = [ "x86_64-linux" ];
46   };