bws: install completions

+9
+9
pkgs/tools/security/bws/default.nix
··· 1 1 { lib 2 2 , rustPlatform 3 3 , fetchFromGitHub 4 + , installShellFiles 4 5 , pkg-config 5 6 , oniguruma 6 7 , openssl ··· 29 30 }; 30 31 31 32 nativeBuildInputs = [ 33 + installShellFiles 32 34 pkg-config 33 35 ] ++ lib.optionals stdenv.isLinux [ 34 36 perl ··· 50 52 }; 51 53 52 54 buildAndTestSubdir = "crates/bws"; 55 + 56 + postInstall = '' 57 + installShellCompletion --cmd bws \ 58 + --bash <($out/bin/bws completions bash) \ 59 + --fish <($out/bin/bws completions fish) \ 60 + --zsh <($out/bin/bws completions zsh) 61 + ''; 53 62 54 63 meta = { 55 64 changelog = "https://github.com/bitwarden/sdk/blob/${src.rev}/CHANGELOG.md";