3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/keycard-cli/default.nix

32 lines
735 B
Nix
Raw Normal View History

2019-10-08 16:34:36 +01:00
{ lib, buildGoPackage, fetchFromGitHub, pkgconfig, pcsclite }:
buildGoPackage rec {
pname = "keycard-cli";
2020-06-15 09:15:12 +01:00
version = "0.4.0";
2019-10-08 16:34:36 +01:00
goPackagePath = "github.com/status-im/keycard-cli";
subPackages = [ "." ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pcsclite ];
src = fetchFromGitHub {
owner = "status-im";
repo = pname;
rev = version;
2020-06-15 09:15:12 +01:00
sha256 = "0917vl5lw8wgvyn5l8q6xa8bqh342fibaa38syr8hmz8b09qkh38";
2019-10-08 16:34:36 +01:00
};
2019-10-08 16:47:23 +01:00
buildFlagsArray = [
"-ldflags="
"-X main.version=${version}"
];
2019-10-08 16:34:36 +01: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 ];
};
}