diff --git a/pkgs/applications/networking/cluster/k9s/default.nix b/pkgs/applications/networking/cluster/k9s/default.nix index 951d52dd4e87..c40a5c3d5613 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) \