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

32 lines
736 B
Nix
Raw Normal View History

2021-01-17 04:51:22 +01:00
{ lib, buildGoPackage, fetchFromGitHub, pkg-config, pcsclite }:
2019-10-08 17:34:36 +02:00
buildGoPackage rec {
pname = "keycard-cli";
2021-01-26 00:45:39 +01:00
version = "0.6.0";
2019-10-08 17:34:36 +02:00
goPackagePath = "github.com/status-im/keycard-cli";
subPackages = [ "." ];
2021-01-17 04:51:22 +01:00
nativeBuildInputs = [ pkg-config ];
2019-10-08 17:34:36 +02:00
buildInputs = [ pcsclite ];
src = fetchFromGitHub {
owner = "status-im";
repo = pname;
rev = version;
2021-01-26 00:45:39 +01:00
sha256 = "sha256-ejFvduZs3eWc6efr9o4pXb6qw2QWWQTtkTxF80vOGNU=";
2019-10-08 17:34:36 +02:00
};
2019-10-08 17:47:23 +02:00
buildFlagsArray = [
"-ldflags="
"-X main.version=${version}"
];
2019-10-08 17:34:36 +02:00
meta = with lib; {
description = "A command line tool and shell to manage keycards";
homepage = "https://keycard.status.im";
license = licenses.mpl20;
maintainers = [ maintainers.zimbatm ];
};
}