summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2021-10-19 15:22:36 +0200
committerGitHub <noreply@github.com>2021-10-19 15:22:36 +0200
commit7da20531b73f60456031fa0919e4948d9a73fb70 (patch)
tree3dbf8e6d64c6268694ab9b7344d2841eb366b4f2
parentMerge pull request #141339 from prusnak/electron-21.05 (diff)
parenttrezor-suite: 21.9.2 -> 21.10.2 (diff)
downloadnixpkgs-7da20531b73f60456031fa0919e4948d9a73fb70.tar.gz
Merge pull request #142212 from prusnak/trezor-suite-21.05
[21.05] trezor-suite: 21.5.1 -> 21.10.2
-rw-r--r--pkgs/applications/blockchains/trezor-suite/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/applications/blockchains/trezor-suite/default.nix b/pkgs/applications/blockchains/trezor-suite/default.nix
index 585f01290bba..10418c418f6d 100644
--- a/pkgs/applications/blockchains/trezor-suite/default.nix
+++ b/pkgs/applications/blockchains/trezor-suite/default.nix
@@ -8,7 +8,7 @@
let
pname = "trezor-suite";
- version = "21.5.1";
+ version = "21.10.2";
name = "${pname}-${version}";
suffix = {
@@ -18,10 +18,9 @@ let
src = fetchurl {
url = "https://github.com/trezor/${pname}/releases/download/v${version}/Trezor-Suite-${version}-${suffix}.AppImage";
- # sha512 hashes are obtained from latest-linux-arm64.yml and latest-linux.yml
- sha512 = {
- aarch64-linux = "sha512-nqwfonWySc+wBSJjC8BW9vm+v5zHbKqbbrTTRmoZdEYBJg2SthMtTULNLVpXaX9NHxr6guZnOWdBlzVk2dQkfQ==";
- x86_64-linux = "sha512-tfvdNXsjMe8YXJwTuujz4tKTdfsCuR/9VECF8EkcRP95YM7vuDV8dumru1jKtdiv0gaS1GT3SPEeAfmczY5jGg==";
+ sha512 = { # curl -Lfs https://github.com/trezor/trezor-suite/releases/latest/download/latest-linux{-arm64,}.yml | grep ^sha512 | sed 's/: /-/'
+ aarch64-linux = "sha512-+qXN9cQk1u18ZzeMecPNfhkTTsw61iM/IJYksPJl9+zx2AKldv9tAFUnnmKZ65LabiaIXI+emN185SRRcaOndw==";
+ x86_64-linux = "sha512-WpiG8VOEODqsQ1/jERiEEGwVqR0zbMqERGjOysEVYorA0p3xZyl7OSpWOSWaUjPBZpQtJIBdqhSXeoSRcvfJgg==";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
};
@@ -46,7 +45,7 @@ appimageTools.wrapType2 rec {
install -m 444 -D ${appimageContents}/${pname}.png $out/share/icons/hicolor/512x512/apps/${pname}.png
install -m 444 -D ${appimageContents}/resources/images/icons/512x512.png $out/share/icons/hicolor/512x512/apps/${pname}.png
substituteInPlace $out/share/applications/${pname}.desktop \
- --replace 'Exec=AppRun' 'Exec=${pname}'
+ --replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname}'
# symlink system binaries instead bundled ones
mkdir -p $out/share/${pname}/resources/bin/{bridge,tor}
@@ -57,6 +56,7 @@ appimageTools.wrapType2 rec {
meta = with lib; {
description = "Trezor Suite - Desktop App for managing crypto";
homepage = "https://suite.trezor.io";
+ changelog = "https://github.com/trezor/trezor-suite/releases/tag/v${version}";
license = licenses.unfree;
maintainers = with maintainers; [ prusnak ];
platforms = [ "aarch64-linux" "x86_64-linux" ];