2018-07-24 20:43:26 +01:00
|
|
|
{ stdenv, fetchFromGitHub, lib, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kubetail-${version}";
|
2019-07-19 18:24:38 +01:00
|
|
|
version = "1.6.9";
|
2018-07-24 20:43:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johanhaleby";
|
|
|
|
repo = "kubetail";
|
|
|
|
rev = "${version}";
|
2019-07-19 18:24:38 +01:00
|
|
|
sha256 = "0mcv23p0h1ww9gvax8b4b4x5hmg02shrbgms0v0c72cmw0zf2phr";
|
2018-07-24 20:43:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-11-26 21:15:39 +00:00
|
|
|
install -Dm755 kubetail "$out/bin/kubetail"
|
|
|
|
install -Dm755 completion/kubetail.bash "$out/share/bash-completion/completions/kubetail"
|
|
|
|
install -Dm755 completion/kubetail.fish "$out/share/fish/vendor_completions.d/kubetail.fish"
|
|
|
|
install -Dm755 completion/kubetail.zsh "$out/share/zsh/site-functions/_kubetail"
|
2018-07-24 20:43:26 +01: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;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|