about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/keycard-cli/default.nix
blob: 73eab6c3dec93c5e1c7d8d72cf16201259c21853 (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
29
30
31
{ lib, buildGoPackage, fetchFromGitHub, pkgconfig, pcsclite }:

buildGoPackage rec {
  pname = "keycard-cli";
  version = "0.4.0";

  goPackagePath = "github.com/status-im/keycard-cli";
  subPackages = [ "." ];

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ pcsclite ];

  src = fetchFromGitHub {
    owner = "status-im";
    repo = pname;
    rev = version;
    sha256 = "0917vl5lw8wgvyn5l8q6xa8bqh342fibaa38syr8hmz8b09qkh38";
  };

  buildFlagsArray = [
    "-ldflags="
    "-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 ];
  };
}