kubernetes: add bash completions

This commit is contained in:
Jaka Hudoklin 2016-12-11 14:56:25 +01:00
parent 873e818339
commit ef24c93f72

View File

@ -40,11 +40,13 @@ stdenv.mkDerivation rec {
postBuild = "(cd build/pause && gcc pause.c -o pause)";
installPhase = ''
mkdir -p "$out/bin" "$man/share/man" "$pause/bin"
mkdir -p "$out/bin" "$out/share/bash-completion/completions" "$man/share/man" "$pause/bin"
cp _output/local/go/bin/* "$out/bin/"
cp build/pause/pause "$pause/bin/pause"
cp -R docs/man/man1 "$man/share/man"
$out/bin/kubectl completion bash > $out/share/bash-completion/completions/kubectl
'';
preFixup = ''