depot/third_party/nixpkgs/pkgs/tools/security/keycard-cli/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

28 lines
832 B
Nix

{ lib, stdenv, buildGoModule, fetchFromGitHub, pkg-config, pcsclite }:
buildGoModule rec {
pname = "keycard-cli";
version = "0.7.0";
src = fetchFromGitHub {
owner = "status-im";
repo = pname;
rev = version;
hash = "sha256-K2XxajprpPjfIs8rrnf2coIEQjPnir9/U0fTvqV2++g=";
};
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";
homepage = "https://keycard.status.im";
license = licenses.mpl20;
maintainers = [ maintainers.zimbatm ];
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/keycard-cli.x86_64-darwin
};
}