depot/third_party/nixpkgs/pkgs/by-name/ke/keycard-cli/package.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

29 lines
863 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 = "Command line tool and shell to manage keycards";
mainProgram = "keycard-cli";
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
};
}