feat(pkgs): Add stern-bin package
This commit is contained in:
parent
2c921e157d
commit
a43657841b
2 changed files with 27 additions and 1 deletions
|
@ -73,8 +73,9 @@ in {
|
||||||
(import pkgs/kontemplate.nix)
|
(import pkgs/kontemplate.nix)
|
||||||
(import pkgs/mq-cli.nix)
|
(import pkgs/mq-cli.nix)
|
||||||
(import pkgs/nixfd.nix)
|
(import pkgs/nixfd.nix)
|
||||||
(import pkgs/terraform-bin.nix)
|
|
||||||
(import pkgs/pulseaudio-ctl.nix)
|
(import pkgs/pulseaudio-ctl.nix)
|
||||||
|
(import pkgs/stern-bin.nix)
|
||||||
|
(import pkgs/terraform-bin.nix)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
25
pkgs/stern-bin.nix
Normal file
25
pkgs/stern-bin.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "stern-${version}";
|
||||||
|
version = "1.5.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/wercker/stern/releases/download/${version}/stern_linux_amd64";
|
||||||
|
sha256 = "0xjxhgi1mlkbqimf0fk5cxr6lvwxrr2z49bnw4b1vqpd1gdqjyiv";
|
||||||
|
name = "stern";
|
||||||
|
};
|
||||||
|
|
||||||
|
phases = "installPhase";
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp $src $out/bin/stern
|
||||||
|
chmod +x $out/bin/stern
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Multi pod and container log tailing for Kubernetes";
|
||||||
|
homepage = "https://github.com/wercker/stern";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue