15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
23 sha256 = "sha256-+n+tc3BDHr93yc2TzvI1Xqpcl8fM+bF/KZdv0rWfIZ8=";
26 cargoSha256 = "sha256-2bBo5HXLYQj+R47exPyMbx/RIrykDHjRkLRNMjVAzEI=";
28 nativeBuildInputs = [ installShellFiles pkg-config ];
31 ++ lib.optionals stdenv.isLinux [ pcsclite udev ]
32 ++ lib.optionals stdenv.isDarwin [ PCSC IOKit CoreFoundation AppKit ];
35 install -D 70-solo2.rules $out/lib/udev/rules.d/70-solo2.rules
36 installShellCompletion target/*/release/solo2.{bash,fish,zsh}
41 buildFeatures = [ "cli" ];
44 description = "A CLI tool for managing SoloKeys' Solo2 USB security keys.";
45 homepage = "https://github.com/solokeys/solo2-cli";
46 license = with licenses; [ asl20 mit ]; # either at your option
47 maintainers = with maintainers; [ lukegb ];
48 mainProgram = "solo2";