2022-01-22 01:22:15 +00:00
|
|
|
{ lib, stdenv, buildGoPackage, fetchFromGitHub, pkg-config, pcsclite }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "keycard-cli";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "0.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/status-im/keycard-cli";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ pcsclite ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "status-im";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-ejFvduZs3eWc6efr9o4pXb6qw2QWWQTtkTxF80vOGNU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
2020-04-24 23:36:52 +00:00
|
|
|
"-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 ];
|
2022-01-22 01:22:15 +00:00
|
|
|
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/keycard-cli.x86_64-darwin
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|