about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/k9s
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-02-07 14:59:05 +0100
committerGitHub <noreply@github.com>2024-02-07 14:59:05 +0100
commit932be94aecfe560032c911d20d787d83bd306800 (patch)
treea53089bd5b127b7ea067c2b56642f6784f51327c /pkgs/applications/networking/cluster/k9s
parent0e1a6d89e58da4ec5cef6b5c04f15c63f232297c (diff)
parentb0e8cc5276d3a4dce4676e5144b7750db02cd4d5 (diff)
Merge pull request #285835 from sysedwinistrator/k9s-fix-darwin-completion
k9s: fix broken completion scripts on aarch64-darwin
Diffstat (limited to 'pkgs/applications/networking/cluster/k9s')
-rw-r--r--pkgs/applications/networking/cluster/k9s/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/k9s/default.nix b/pkgs/applications/networking/cluster/k9s/default.nix
index 951d52dd4e877..c40a5c3d56136 100644
--- a/pkgs/applications/networking/cluster/k9s/default.nix
+++ b/pkgs/applications/networking/cluster/k9s/default.nix
@@ -42,6 +42,11 @@ buildGoModule rec {
 
   nativeBuildInputs = [ installShellFiles ];
   postInstall = ''
+    # k9s requires a writeable log directory
+    # Otherwise an error message is printed
+    # into the completion scripts
+    export K9S_LOGS_DIR=$(mktemp -d)
+
     installShellCompletion --cmd k9s \
       --bash <($out/bin/k9s completion bash) \
       --fish <($out/bin/k9s completion fish) \