diff options
author | lucasew <lucas59356@gmail.com> | 2023-03-30 23:03:03 -0300 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2023-04-01 08:25:34 +1000 |
commit | a9627931788f13cf59d90a6d242769f24ee516a9 (patch) | |
tree | 2bd21196d0c4ee0c68ad20b8bcf8e4e0db14c3af | |
parent | cfcd779f3c37b138c6387425a802af05050b747b (diff) |
terraform: setup completion only
Signed-off-by: lucasew <lucas59356@gmail.com>
-rw-r--r-- | pkgs/applications/networking/cluster/terraform/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/terraform/default.nix b/pkgs/applications/networking/cluster/terraform/default.nix index f71d98c90d7b7..beaf18e0697fe 100644 --- a/pkgs/applications/networking/cluster/terraform/default.nix +++ b/pkgs/applications/networking/cluster/terraform/default.nix @@ -9,6 +9,7 @@ , writeText , terraform-providers , fetchpatch +, installShellFiles }: let @@ -34,6 +35,8 @@ let --replace "/bin/stty" "${coreutils}/bin/stty" ''; + nativeBuildInputs = [ installShellFiles ]; + postInstall = '' # remove all plugins, they are part of the main binary now for i in $out/bin/*; do @@ -41,6 +44,9 @@ let rm "$i" fi done + + # https://github.com/posener/complete/blob/9a4745ac49b29530e07dc2581745a218b646b7a3/cmd/install/bash.go#L8 + installShellCompletion --bash --name terraform <(echo complete -C terraform terraform) ''; preCheck = '' |