about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/kubernetes
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2022-07-05 11:35:20 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2022-07-05 11:54:06 +1000
commitdff0428a45de0523860e783d4d2db7e5fdf61c5c (patch)
tree7802bc5a936f60542716cd92ec6d673d313dfcb7 /pkgs/applications/networking/cluster/kubernetes
parent0c873dc3a280f12cd5322e4b1b84aa1e2e18d657 (diff)
kubectl: override kubernetes
Diffstat (limited to 'pkgs/applications/networking/cluster/kubernetes')
-rw-r--r--pkgs/applications/networking/cluster/kubernetes/kubectl.nix15
1 files changed, 3 insertions, 12 deletions
diff --git a/pkgs/applications/networking/cluster/kubernetes/kubectl.nix b/pkgs/applications/networking/cluster/kubernetes/kubectl.nix
index 754bca32511c1..1176f0f28f684 100644
--- a/pkgs/applications/networking/cluster/kubernetes/kubectl.nix
+++ b/pkgs/applications/networking/cluster/kubernetes/kubectl.nix
@@ -1,17 +1,8 @@
-{ lib, buildGoModule, kubernetes }:
+{ lib, kubernetes }:
 
-buildGoModule rec {
+kubernetes.overrideAttrs (_: rec {
   pname = "kubectl";
 
-  inherit (kubernetes)
-    buildPhase
-    doCheck
-    nativeBuildInputs
-    src
-    vendorSha256
-    version
-    ;
-
   outputs = [ "out" "man" "convert" ];
 
   WHAT = lib.concatStringsSep " " [
@@ -38,4 +29,4 @@ buildGoModule rec {
     homepage = "https://github.com/kubernetes/kubectl";
     platforms = lib.platforms.unix;
   };
-}
+})