8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
15 tag = "pizauth-${version}";
16 hash = "sha256-x3LdutVrQFrkXvbGPVzBV7Y8P9okKgv2rh2YdnDXvsc=";
19 cargoHash = "sha256-moRr8usrFHE8YPQnsmeKoDZPAk94qRm9cHzHBLXtGFM=";
21 nativeBuildInputs = [ installShellFiles ];
24 installShellCompletion --cmd pizauth \
25 --bash share/bash/completion.bash
29 description = "Command-line OAuth2 authentication daemon";
30 homepage = "https://github.com/ltratt/pizauth";
31 changelog = "https://github.com/ltratt/pizauth/blob/${src.rev}/CHANGES.md";
32 license = with lib.licenses; [
36 maintainers = with lib.maintainers; [ moraxyc ];
37 mainProgram = "pizauth";