depot/third_party/nixpkgs/pkgs/tools/security/keycard-cli/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
736 B
Nix

{ lib, buildGoPackage, fetchFromGitHub, pkgconfig, pcsclite }:
buildGoPackage rec {
pname = "keycard-cli";
version = "0.0.12";
goPackagePath = "github.com/status-im/keycard-cli";
subPackages = [ "." ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pcsclite ];
src = fetchFromGitHub {
owner = "status-im";
repo = pname;
rev = version;
sha256 = "1jnbaq57i6i9bad1hcvd28mxfqq6v8rv806c6l74vlb79ff4v1wb";
};
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 ];
};
}