diff options
author | Aaron Jheng <wentworth@outlook.com> | 2022-11-12 22:31:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 15:31:34 +0100 |
commit | e28df55ffe1027ba5da0c89ac8056358d82c23f6 (patch) | |
tree | 15be550924dcf56bf3641fb97bd166ce1d003187 /pkgs/tools/security/keycard-cli | |
parent | d7a7f1216331ad8ecaba094fefd73ae5504d57f7 (diff) |
keycard-cli: 0.6.0 -> 0.7.0 (#200785)
Diffstat (limited to 'pkgs/tools/security/keycard-cli')
-rw-r--r-- | pkgs/tools/security/keycard-cli/default.nix | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/pkgs/tools/security/keycard-cli/default.nix b/pkgs/tools/security/keycard-cli/default.nix index 7e28bb7c0bfcd..851a0dac9031c 100644 --- a/pkgs/tools/security/keycard-cli/default.nix +++ b/pkgs/tools/security/keycard-cli/default.nix @@ -1,25 +1,22 @@ -{ lib, stdenv, buildGoPackage, fetchFromGitHub, pkg-config, pcsclite }: +{ lib, stdenv, buildGoModule, fetchFromGitHub, pkg-config, pcsclite }: -buildGoPackage rec { +buildGoModule rec { pname = "keycard-cli"; - version = "0.6.0"; - - goPackagePath = "github.com/status-im/keycard-cli"; - subPackages = [ "." ]; - - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ pcsclite ]; + version = "0.7.0"; src = fetchFromGitHub { owner = "status-im"; repo = pname; rev = version; - sha256 = "sha256-ejFvduZs3eWc6efr9o4pXb6qw2QWWQTtkTxF80vOGNU="; + hash = "sha256-K2XxajprpPjfIs8rrnf2coIEQjPnir9/U0fTvqV2++g="; }; - ldflags = [ - "-X main.version=${version}" - ]; + vendorHash = "sha256-3XzWOiZF2WNs2pdumYN9bphvBKY+rrjuT+wWhB2pwT0="; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ pcsclite ]; + + ldflags = [ "-s" "-w" "-X main.version=${version}" ]; meta = with lib; { description = "A command line tool and shell to manage keycards"; |