diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2020-04-27 10:03:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 10:03:52 +0100 |
commit | a90356e08a994476a1a8fe35cbe41c9f99014fc8 (patch) | |
tree | 859b4600ad5eca205f61297364277779e06be6c9 /pkgs/applications/networking/cluster/kops | |
parent | a6b85b96d4c5d8101c49661594dc5ad4eaa07656 (diff) | |
parent | 454f8ef82aa776c8fd6a3da8bcf72211c3f6cfa9 (diff) | |
download | nixpkgs-a90356e08a994476a1a8fe35cbe41c9f99014fc8.tar nixpkgs-a90356e08a994476a1a8fe35cbe41c9f99014fc8.tar.gz nixpkgs-a90356e08a994476a1a8fe35cbe41c9f99014fc8.tar.bz2 nixpkgs-a90356e08a994476a1a8fe35cbe41c9f99014fc8.tar.lz nixpkgs-a90356e08a994476a1a8fe35cbe41c9f99014fc8.tar.xz nixpkgs-a90356e08a994476a1a8fe35cbe41c9f99014fc8.tar.zst nixpkgs-a90356e08a994476a1a8fe35cbe41c9f99014fc8.zip |
Merge pull request #86035 from zowoq/go-fixes
Diffstat (limited to 'pkgs/applications/networking/cluster/kops')
-rw-r--r-- | pkgs/applications/networking/cluster/kops/default.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/applications/networking/cluster/kops/default.nix b/pkgs/applications/networking/cluster/kops/default.nix index a5f1806e577..4d2e406c040 100644 --- a/pkgs/applications/networking/cluster/kops/default.nix +++ b/pkgs/applications/networking/cluster/kops/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildGoPackage, fetchFromGitHub, go-bindata }: +{ stdenv, lib, buildGoPackage, fetchFromGitHub, go-bindata, installShellFiles }: let goPackagePath = "k8s.io/kops"; @@ -18,7 +18,7 @@ let inherit sha256; }; - nativeBuildInputs = [ go-bindata ]; + nativeBuildInputs = [ go-bindata installShellFiles ]; subPackages = [ "cmd/kops" ]; buildFlagsArray = '' @@ -33,10 +33,10 @@ let ''; postInstall = '' - mkdir -p $bin/share/bash-completion/completions - mkdir -p $bin/share/zsh/site-functions - $bin/bin/kops completion bash > $bin/share/bash-completion/completions/kops - $bin/bin/kops completion zsh > $bin/share/zsh/site-functions/_kops + for shell in bash zsh; do + $bin/bin/kops completion $shell > kops.$shell + installShellCompletion kops.$shell + done ''; meta = with stdenv.lib; { |