From 048a25c2ad7bd8b157e8746cbe9d858120448173 Mon Sep 17 00:00:00 2001 From: gitmpr <89863774+gitmpr@users.noreply.github.com> Date: Sun, 7 Jun 2026 10:01:20 +0200 Subject: [PATCH 1/2] k9s: 0.50.18 -> 0.51.0 Assisted-by: Claude Code (claude-sonnet-4-6) (cherry picked from commit 0892e721873491d0d21601703599d6e36f0312b1) --- pkgs/by-name/k9/k9s/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/k9/k9s/package.nix b/pkgs/by-name/k9/k9s/package.nix index 76a58dac9520..386161b25861 100644 --- a/pkgs/by-name/k9/k9s/package.nix +++ b/pkgs/by-name/k9/k9s/package.nix @@ -12,13 +12,13 @@ buildGoModule (finalAttrs: { pname = "k9s"; - version = "0.50.18"; + version = "0.51.0"; src = fetchFromGitHub { owner = "derailed"; repo = "k9s"; tag = "v${finalAttrs.version}"; - hash = "sha256-WIcT4LfoIZ8BctwrUgn+mLbqwJ2NZx6Sc5sJeT9fsus="; + hash = "sha256-70Rfu1BVd/QnwWXRRpwIeZ2UJNWIGixpdiOHo4v7adA="; }; ldflags = [ @@ -32,7 +32,7 @@ buildGoModule (finalAttrs: { proxyVendor = true; - vendorHash = "sha256-QvMT/pHtwXAsbGxcOLwqYQoa2gdplhDUnPhwc/50PFs="; + vendorHash = "sha256-PkYDJK2oGl+siCG9p4R8shC0e5BhGFdJsc+ksL9J5zw="; # TODO investigate why some config tests are failing doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); From 13761d68f7c39593387dc3e6bb61c38f65f24fb5 Mon Sep 17 00:00:00 2001 From: Hoang Nguyen Date: Mon, 20 Jul 2026 16:16:31 +0700 Subject: [PATCH 2/2] k9s: wrap with kubectl in PATH Ref: https://github.com/derailed/k9s/blob/5fedc44020a7f01e31328b5e611cb3365f66fba5/internal/view/exec.go#L59 (cherry picked from commit ed261f75ee1c771699327b2564aca5998cbc81d4) --- pkgs/by-name/k9/k9s/package.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/k9/k9s/package.nix b/pkgs/by-name/k9/k9s/package.nix index 386161b25861..c354f2441e8f 100644 --- a/pkgs/by-name/k9/k9s/package.nix +++ b/pkgs/by-name/k9/k9s/package.nix @@ -4,9 +4,11 @@ buildGoModule, fetchFromGitHub, installShellFiles, + makeWrapper, testers, nix-update-script, k9s, + kubectl, writableTmpDirAsHomeHook, }: @@ -48,7 +50,10 @@ buildGoModule (finalAttrs: { updateScript = nix-update-script { }; }; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + makeWrapper + ]; postInstall = '' # k9s requires a writeable log directory # Otherwise an error message is printed @@ -60,6 +65,13 @@ buildGoModule (finalAttrs: { --fish <($out/bin/k9s completion fish) \ --zsh <($out/bin/k9s completion zsh) + wrapProgram $out/bin/k9s \ + --suffix PATH : "${ + lib.makeBinPath [ + kubectl + ] + }" + mkdir -p $out/share/k9s/skins cp -r $src/skins/* $out/share/k9s/skins/ '';