git.iko.soy/typeable/nixpkgs
on master help sign in
trezor-suite: 21.2.2 -> 21.4.1
commitc3cc679171a578eb64da2577e521d5078e4bdbc7 authorPavol Rusnak <pavol@rusnak.io> dateWed 14 Apr 2021, 16:22 (6 years ago) parent4c87cb8
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 {
@@ -48,6 +57,6 @@ appimageTools.wrapType2 rec {
4857 homepage = "https://suite.trezor.io";
4958 license = licenses.unfree;
5059 maintainers = with maintainers; [ prusnak ];
51− platforms = [ "x86_64-linux" ];
60+ platforms = [ "aarch64-linux" "x86_64-linux" ];
5261 };
5362}