presenterm: 0.9.0 -> 0.10.0 (#378946)
[NixPkgs.git] / pkgs / by-name / st / status-im / package.nix
blobe027265882df6ba02f0724efe962279bcff99a81
2   lib,
3   appimageTools,
4   fetchzip,
5   fetchurl,
6   makeDesktopItem,
7 }:
8 let
9   version = "2.29.0";
10   commit = "f78ece";
12   src = fetchzip {
13     name = "StatusIm-Desktop-v${version}-${commit}-x86_64.AppImage";
14     url = "https://github.com/status-im/status-desktop/releases/download/${version}/StatusIm-Desktop-v${version}-${commit}-x86_64.tar.gz";
15     hash = "sha256-i91E1eaN6paM+uZ8EvO1+Wj0Po9KnzQorG0tWKF4hn8=";
16     stripRoot = false;
17     postFetch = ''
18       mv $out/StatusIm-Desktop-v${version}-${commit}-x86_64.AppImage $TMPDIR/tmp
19       rm -rf $out
20       mv $TMPDIR/tmp $out
21     '';
22   };
24   desktopEntry = makeDesktopItem {
25     name = "status";
26     desktopName = "Status Desktop";
27     exec = "status-desktop";
28     icon = "status";
29     comment = "Desktop client for the Status Network";
30     categories = [ "Network" ];
31   };
32   icon = fetchurl {
33     url = "https://github.com/status-im/status-desktop/raw/afde83651724a555626b5d9a3d582918de6c3d59/status.png";
34     hash = "sha256-ViGuOr9LskGs/P7pjPO9zYgosWaZlZZYVuPpliOA5dY=";
35   };
36   pname = "status-desktop";
38 appimageTools.wrapType2 {
39   inherit pname version src;
40   extraInstallCommands = ''
41     install -m 444 -D ${desktopEntry}/share/applications/status.desktop $out/share/applications/status.desktop
42     install -m 444 -D ${icon} $out/share/icons/hicolor/512x512/apps/status.png
43   '';
44   meta = with lib; {
45     description = "Desktop client for the Status Network";
46     license = licenses.mpl20;
47     maintainers = with maintainers; [ a-kenji ];
48     platforms = platforms.linux;
49   };