From dff0428a45de0523860e783d4d2db7e5fdf61c5c Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Tue, 5 Jul 2022 11:35:20 +1000 Subject: [PATCH] kubectl: override kubernetes --- .../networking/cluster/kubernetes/kubectl.nix | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/networking/cluster/kubernetes/kubectl.nix b/pkgs/applications/networking/cluster/kubernetes/kubectl.nix index 754bca32511c..1176f0f28f68 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; }; -} +})