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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
841 B
Nix
Raw Normal View History

2022-01-21 18:10:31 +00:00
{ lib, stdenv, buildGoPackage, fetchFromGitHub, pkg-config, pcsclite }:
2019-10-08 16:34:36 +01:00
buildGoPackage rec {
pname = "keycard-cli";
2021-01-25 23:45:39 +00:00
version = "0.6.0";
2019-10-08 16:34:36 +01:00
goPackagePath = "github.com/status-im/keycard-cli";
subPackages = [ "." ];
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config ];
2019-10-08 16:34:36 +01:00
buildInputs = [ pcsclite ];
src = fetchFromGitHub {
owner = "status-im";
repo = pname;
rev = version;
2021-01-25 23:45:39 +00:00
sha256 = "sha256-ejFvduZs3eWc6efr9o4pXb6qw2QWWQTtkTxF80vOGNU=";
2019-10-08 16:34:36 +01:00
};
2021-08-26 04:31:57 +01:00
ldflags = [
2019-10-08 16:47:23 +01:00
"-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 ];
2022-01-21 18:10:31 +00:00
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/keycard-cli.x86_64-darwin
2019-10-08 16:34:36 +01:00
};
}