depot/third_party/nixpkgs/pkgs/tools/security/keycard-cli/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

31 lines
736 B
Nix

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