bws: install completions

+9
+9
pkgs/tools/security/bws/default.nix
··· 1 { lib 2 , rustPlatform 3 , fetchFromGitHub 4 , pkg-config 5 , oniguruma 6 , openssl ··· 29 }; 30 31 nativeBuildInputs = [ 32 pkg-config 33 ] ++ lib.optionals stdenv.isLinux [ 34 perl ··· 50 }; 51 52 buildAndTestSubdir = "crates/bws"; 53 54 meta = { 55 changelog = "https://github.com/bitwarden/sdk/blob/${src.rev}/CHANGELOG.md";
··· 1 { lib 2 , rustPlatform 3 , fetchFromGitHub 4 + , installShellFiles 5 , pkg-config 6 , oniguruma 7 , openssl ··· 30 }; 31 32 nativeBuildInputs = [ 33 + installShellFiles 34 pkg-config 35 ] ++ lib.optionals stdenv.isLinux [ 36 perl ··· 52 }; 53 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 + ''; 62 63 meta = { 64 changelog = "https://github.com/bitwarden/sdk/blob/${src.rev}/CHANGELOG.md";