15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
23 sha256 = "sha256-7tpO5ir42mIKJXD0NJzEPXi/Xe6LdyEeBQWNfOdgX5I=";
26 cargoHash = "sha256-X+IEeztSL312Yq9Loi3cNJuVfSGk/tRRBCsy0Juji7Y=";
28 nativeBuildInputs = [ installShellFiles pkg-config ];
31 ++ lib.optionals stdenv.hostPlatform.isLinux [ pcsclite udev ]
32 ++ lib.optionals stdenv.hostPlatform.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}
37 installShellCompletion --zsh target/*/release/_solo2
42 buildFeatures = [ "cli" ];
45 description = "CLI tool for managing SoloKeys' Solo2 USB security keys";
46 homepage = "https://github.com/solokeys/solo2-cli";
47 license = with licenses; [ asl20 mit ]; # either at your option
48 maintainers = with maintainers; [ lukegb ];
49 mainProgram = "solo2";