diff options
author | Quentin Revel <qrevel@nottle.fr> | 2020-11-13 16:44:16 +0100 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2020-11-23 12:54:53 +0800 |
commit | 8582f5dbc9b5cb4d70c099f7d6c9b45d5b9275cb (patch) | |
tree | 0df128a6bdce64e8613408f5e53357a17e796740 /pkgs/tools | |
parent | a9f8357e2e9a3a203243a2be924c374b700a77e0 (diff) |
awscli2: fix completion
Generate index file for shell completion
Fix #103709
See-also: https://github.com/Homebrew/homebrew-core/pull/57547/files
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/admin/awscli2/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index 6a1c6d25983a..06e1487cfe94 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -69,6 +69,9 @@ with py.pkgs; buildPythonApplication rec { ]; postInstall = '' + mkdir -p $out/${python3.sitePackages}/awscli/data + ${python3.interpreter} scripts/gen-ac-index --index-location $out/${python3.sitePackages}/awscli/data/ac.index + mkdir -p $out/share/bash-completion/completions echo "complete -C $out/bin/aws_completer aws" > $out/share/bash-completion/completions/awscli |