nixpkgs/pkgs/tools/security/keycard-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
865 B
Nix
Raw Normal View History

2022-11-12 14:31:34 +00:00
{ lib, stdenv, buildGoModule, fetchFromGitHub, pkg-config, pcsclite }:
2019-10-08 15:34:36 +00:00
2022-11-12 14:31:34 +00:00
buildGoModule rec {
2019-10-08 15:34:36 +00:00
pname = "keycard-cli";
2022-11-12 14:31:34 +00:00
version = "0.7.0";
2019-10-08 15:34:36 +00:00
src = fetchFromGitHub {
owner = "status-im";
repo = pname;
rev = version;
2022-11-12 14:31:34 +00:00
hash = "sha256-K2XxajprpPjfIs8rrnf2coIEQjPnir9/U0fTvqV2++g=";
2019-10-08 15:34:36 +00:00
};
2022-11-12 14:31:34 +00:00
vendorHash = "sha256-3XzWOiZF2WNs2pdumYN9bphvBKY+rrjuT+wWhB2pwT0=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pcsclite ];
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2019-10-08 15:47:23 +00:00
2019-10-08 15:34:36 +00:00
meta = with lib; {
description = "A command line tool and shell to manage keycards";
mainProgram = "keycard-cli";
2019-10-08 15:34:36 +00:00
homepage = "https://keycard.status.im";
license = licenses.mpl20;
maintainers = [ maintainers.zimbatm ];
2022-01-21 18:10:31 +00:00
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/keycard-cli.x86_64-darwin
2019-10-08 15:34:36 +00:00
};
}