nixpkgs/pkgs/applications/networking/cluster/kubetail/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.1 KiB
Nix
Raw Normal View History

2022-11-10 10:39:16 +00:00
{ stdenv, fetchFromGitHub, lib, installShellFiles, makeWrapper, kubectl }:
2018-07-24 19:43:26 +00:00
stdenv.mkDerivation rec {
pname = "kubetail";
2022-11-10 10:39:16 +00:00
version = "1.6.16";
2018-07-24 19:43:26 +00:00
src = fetchFromGitHub {
owner = "johanhaleby";
repo = "kubetail";
2019-09-08 23:38:31 +00:00
rev = version;
2022-11-10 10:39:16 +00:00
sha256 = "sha256-kkbhhAaiKP01LR7F5JVMgy6Ujji8JDc+Aaho1vft3XQ=";
2018-07-24 19:43:26 +00:00
};
2022-11-10 10:39:16 +00:00
nativeBuildInputs = [ installShellFiles makeWrapper ];
2018-07-24 19:43:26 +00:00
installPhase = ''
2022-11-10 10:39:16 +00:00
install -Dm755 kubetail "$out/bin/kubetail"
wrapProgram $out/bin/kubetail --prefix PATH : ${lib.makeBinPath [ kubectl ]}
installShellCompletion completion/kubetail.{bash,fish,zsh}
2018-07-24 19:43:26 +00:00
'';
meta = with lib; {
description = "Bash script to tail Kubernetes logs from multiple pods at the same time";
longDescription = ''
Bash script that enables you to aggregate (tail/follow) logs from
multiple pods into one stream. This is the same as running "kubectl logs
-f " but for multiple pods.
'';
homepage = "https://github.com/johanhaleby/kubetail";
2018-07-24 19:43:26 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.all;
};
}