about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/openshift
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-04-27 10:10:25 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-04-27 21:06:12 +1000
commit7516cc722614d24890bada6d3ada1a30c86ecfd4 (patch)
tree53a4df0846af549dba672ae0bfafd50021f3a0ad /pkgs/applications/networking/cluster/openshift
parente92b11d964d13991f5d62b3affec04c4fb03f110 (diff)
downloadnixlib-7516cc722614d24890bada6d3ada1a30c86ecfd4.tar
nixlib-7516cc722614d24890bada6d3ada1a30c86ecfd4.tar.gz
nixlib-7516cc722614d24890bada6d3ada1a30c86ecfd4.tar.bz2
nixlib-7516cc722614d24890bada6d3ada1a30c86ecfd4.tar.lz
nixlib-7516cc722614d24890bada6d3ada1a30c86ecfd4.tar.xz
nixlib-7516cc722614d24890bada6d3ada1a30c86ecfd4.tar.zst
nixlib-7516cc722614d24890bada6d3ada1a30c86ecfd4.zip
openshift: use installShellFiles
Diffstat (limited to 'pkgs/applications/networking/cluster/openshift')
-rw-r--r--pkgs/applications/networking/cluster/openshift/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/networking/cluster/openshift/default.nix b/pkgs/applications/networking/cluster/openshift/default.nix
index a9b0ed3fcb59..bcd259b138f7 100644
--- a/pkgs/applications/networking/cluster/openshift/default.nix
+++ b/pkgs/applications/networking/cluster/openshift/default.nix
@@ -1,5 +1,5 @@
 { stdenv, lib, fetchFromGitHub, buildGoPackage, which, go-bindata, rsync, utillinux
-, coreutils, kerberos, clang
+, coreutils, kerberos, clang, installShellFiles
 , components ? [
   "cmd/oc"
   "cmd/openshift"
@@ -35,7 +35,7 @@ in buildGoPackage rec {
 
   buildInputs = [ kerberos ];
 
-  nativeBuildInputs = [ which rsync go-bindata clang ];
+  nativeBuildInputs = [ which rsync go-bindata clang installShellFiles ];
 
   patchPhase = ''
     patchShebangs ./hack
@@ -74,8 +74,8 @@ in buildGoPackage rec {
   installPhase = ''
     mkdir -p $bin/bin
     cp -a "_output/local/bin/$(go env GOOS)/$(go env GOARCH)/"* "$bin/bin/"
-    install -D -t "$bin/etc/bash_completion.d" contrib/completions/bash/*
-    install -D -t "$bin/share/zsh/site-functions" contrib/completions/zsh/*
+    installShellCompletion --bash contrib/completions/bash/*
+    installShellCompletion --zsh contrib/completions/zsh/*
   '';
 
   meta = with stdenv.lib; {