Unverified Commit 9faec742 authored by poz's avatar poz
Browse files

simplex-chat-desktop: enable on aarch64-linux

parent 33476259
Loading
Loading
Loading
Loading
+19 −4
Original line number Diff line number Diff line
@@ -3,16 +3,28 @@
  appimageTools,
  fetchurl,
  gitUpdater,
  stdenv,
}:

let
  pname = "simplex-chat-desktop";
  version = "6.4.8";

  src = fetchurl {
  sources = {
    "aarch64-linux" = fetchurl {
      url = "https://github.com/simplex-chat/simplex-chat/releases/download/v${version}/simplex-desktop-aarch64.AppImage";
      hash = "sha256-CvHwYKbieRYbBKUCoKAa11rTy5Opdfb7FKS4poantKs=";
    };
    "x86_64-linux" = fetchurl {
      url = "https://github.com/simplex-chat/simplex-chat/releases/download/v${version}/simplex-desktop-x86_64.AppImage";
      hash = "sha256-2XyA4UZ9EMzFnFNFFek1ka2MURBFFKyMolGMYZPD5Zw=";
    };
  };

  inherit (stdenv.hostPlatform) system;
  throwSystem = throw "simplex-chat-desktop: Unsupported system: ${system}";

  src = sources.${system} or throwSystem;

  appimageContents = appimageTools.extract {
    inherit pname version src;
@@ -46,6 +58,9 @@ appimageTools.wrapType2 {
    changelog = "https://github.com/simplex-chat/simplex-chat/releases/tag/v${version}";
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [ terryg ];
    platforms = [ "x86_64-linux" ];
    platforms = [
      "aarch64-linux"
      "x86_64-linux"
    ];
  };
}