mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 20:00:10 +00:00
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #538419
41 lines
944 B
Nix
41 lines
944 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
pcsclite,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "keycard-cli";
|
|
version = "0.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "keycard-tech";
|
|
repo = "keycard-cli";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-H9fipHGxINMAXdxUYhyVZusDXA3HW1iQl8iRX6AF7iE=";
|
|
};
|
|
|
|
vendorHash = "sha256-6zZY6pMazapteJp2fsCdwXBEXbwSf/ZEUIcQONJYj2Q=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ pcsclite ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${finalAttrs.version}"
|
|
];
|
|
|
|
meta = {
|
|
description = "Command line tool and shell to manage keycards";
|
|
mainProgram = "keycard-cli";
|
|
homepage = "https://keycard.status.im";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = [ lib.maintainers.zimbatm ];
|
|
broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/keycard-cli.x86_64-darwin
|
|
};
|
|
})
|