diff options
author | Markus Hauck <markus1189@gmail.com> | 2021-03-04 12:18:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 12:18:30 +0100 |
commit | 61e6aeb6b259c6acda774f958b9acb213cf137a0 (patch) | |
tree | 29edc4895df91f472542af79c4f49c134265f2d0 /pkgs/tools/admin/aws-vault | |
parent | 8671fe7c90efa508bcb47690ead0c45a908458ab (diff) |
aws-vault: install completions (#115059)
Diffstat (limited to 'pkgs/tools/admin/aws-vault')
-rw-r--r-- | pkgs/tools/admin/aws-vault/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/tools/admin/aws-vault/default.nix b/pkgs/tools/admin/aws-vault/default.nix index d55b90f3b84d5..13860b4bf7cea 100644 --- a/pkgs/tools/admin/aws-vault/default.nix +++ b/pkgs/tools/admin/aws-vault/default.nix @@ -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 = [ "." ]; |