nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 909 B view raw
1{ 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6 pkg-config, 7 pcsclite, 8}: 9 10buildGoModule rec { 11 pname = "keycard-cli"; 12 version = "0.8.2"; 13 14 src = fetchFromGitHub { 15 owner = "status-im"; 16 repo = "keycard-cli"; 17 rev = version; 18 hash = "sha256-H9fipHGxINMAXdxUYhyVZusDXA3HW1iQl8iRX6AF7iE="; 19 }; 20 21 vendorHash = "sha256-6zZY6pMazapteJp2fsCdwXBEXbwSf/ZEUIcQONJYj2Q="; 22 23 nativeBuildInputs = [ pkg-config ]; 24 buildInputs = [ pcsclite ]; 25 26 ldflags = [ 27 "-s" 28 "-w" 29 "-X main.version=${version}" 30 ]; 31 32 meta = { 33 description = "Command line tool and shell to manage keycards"; 34 mainProgram = "keycard-cli"; 35 homepage = "https://keycard.status.im"; 36 license = lib.licenses.mpl20; 37 maintainers = [ lib.maintainers.zimbatm ]; 38 broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/keycard-cli.x86_64-darwin 39 }; 40}