Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, buildGoModule, fetchFromGitHub, pkg-config, pcsclite }: 2 3buildGoModule rec { 4 pname = "keycard-cli"; 5 version = "0.7.0"; 6 7 src = fetchFromGitHub { 8 owner = "status-im"; 9 repo = pname; 10 rev = version; 11 hash = "sha256-K2XxajprpPjfIs8rrnf2coIEQjPnir9/U0fTvqV2++g="; 12 }; 13 14 vendorHash = "sha256-3XzWOiZF2WNs2pdumYN9bphvBKY+rrjuT+wWhB2pwT0="; 15 16 nativeBuildInputs = [ pkg-config ]; 17 buildInputs = [ pcsclite ]; 18 19 ldflags = [ "-s" "-w" "-X main.version=${version}" ]; 20 21 meta = with lib; { 22 description = "A command line tool and shell to manage keycards"; 23 homepage = "https://keycard.status.im"; 24 license = licenses.mpl20; 25 maintainers = [ maintainers.zimbatm ]; 26 broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/keycard-cli.x86_64-darwin 27 }; 28}