aws-vault: install completions (#115059)

This commit is contained in:
Markus Hauck 2021-03-04 12:18:30 +01:00 committed by GitHub
parent 8671fe7c90
commit 61e6aeb6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ buildGoModule, lib, fetchFromGitHub }:
{ buildGoModule, lib, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "aws-vault";
version = "6.2.0";
@ -12,6 +12,16 @@ buildGoModule rec {
vendorSha256 = "18lmxx784377x1v0gr6fkdx5flhcajsqlzyjx508z0kih6ammc0z";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd aws-vault \
--bash $src/contrib/completions/bash/aws-vault.bash \
--fish $src/contrib/completions/fish/aws-vault.fish \
--zsh $src/contrib/completions/zsh/aws-vault.zsh
'';
doCheck = false;
subPackages = [ "." ];