git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #120898 from prusnak/trezor-suite

trezor-suite: 21.2.2 -> 21.4.1

commit1247a390c04e1e193e879f4453720cc88062293a authorRaghav Sood <r@raghavsood.com> dateThu 29 Apr 2021, 22:02 (6 years ago) parent25bbad9c3cc679
1 file changed+13−4
pkgs/applications/blockchains/trezor-suite/default.nix+13−4
pkgs/applications/blockchains/trezor-suite/default.nix+13−4
@@ -1,4 +1,5 @@
11{ lib
2+, stdenv
23, fetchurl
34, appimageTools
45, tor
@@ -7,12 +8,20 @@
78
89let
910 pname = "trezor-suite";
10− version = "21.2.2";
11+ version = "21.4.1";
1112 name = "${pname}-${version}";
1213
14+ suffix = {
15+ aarch64-linux = "linux-arm64";
16+ x86_64-linux = "linux-x86_64";
17+ }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
18+
1319 src = fetchurl {
14− url = "https://github.com/trezor/${pname}/releases/download/v${version}/Trezor-Suite-${version}-linux-x86_64.AppImage";
15− sha256 = "0dj3azx9jvxchrpm02w6nkcis6wlnc6df04z7xc6f66fwn6r3kkw";
20+ url = "https://github.com/trezor/${pname}/releases/download/v${version}/Trezor-Suite-${version}-${suffix}.AppImage";
21+ sha256 = {
22+ aarch64-linux = "51ea8a5210f008d13a729ac42085563b5e8b971b17ed766f84d69d76dcb2db0c";
23+ x86_64-linux = "9219168a504356152b3b807e1e7282e21952461d277596c6b82ddfe81ac2419c";
24+ }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
1625 };
1726
1827 appimageContents = appimageTools.extractType2 {
@@ -49,6 +58,6 @@ appimageTools.wrapType2 rec {
4958 homepage = "https://suite.trezor.io";
5059 license = licenses.unfree;
5160 maintainers = with maintainers; [ prusnak ];
52− platforms = [ "x86_64-linux" ];
61+ platforms = [ "aarch64-linux" "x86_64-linux" ];
5362 };
5463}