about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/keycard-cli/default.nix
blob: 851a0dac9031cfc8f6ce8bb1200247357da7f050 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ 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
  };
}