From 79efdd54d699827d0e3d80c160e450bca6785a01 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 6 Nov 2022 01:09:42 +0100 Subject: [PATCH] trezord: 2.0.31 -> 2.0.32 --- pkgs/servers/trezord/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/trezord/default.nix b/pkgs/servers/trezord/default.nix index 29cd2766bd8b..a6f3bba51c95 100644 --- a/pkgs/servers/trezord/default.nix +++ b/pkgs/servers/trezord/default.nix @@ -8,20 +8,27 @@ buildGoModule rec { pname = "trezord-go"; - version = "2.0.31"; + version = "2.0.32"; + commit = "9aa6576"; src = fetchFromGitHub { owner = "trezor"; repo = "trezord-go"; rev = "v${version}"; - sha256 = "130nhk1pnr3xx9qkcij81mm3jxrl5zvvdqhvrgvrikqg3zlb6v5b"; + fetchSubmodules = true; + sha256 = "sha256-T7YoHi2sA22nfNbgX2WB5NIFIwxBkxn0CsSXyQTxgJc="; }; - vendorSha256 = "0wb959xzyvr5zzjvkfqc422frmf97q5nr460f02wwx0pj6ch0y61"; + vendorSha256 = "sha256-wXgAmZEXdM4FcMCQbAs+ydXshCAMu7nl/yVv/3sqaXE="; propagatedBuildInputs = lib.optionals stdenv.isLinux [ trezor-udev-rules ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; + ldflags = [ + "-s" "-w" + "-X main.githash=${commit}" + ]; + meta = with lib; { description = "Trezor Communication Daemon aka Trezor Bridge"; homepage = "https://trezor.io";