diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-11-09T09·40+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-11-09T09·40+0100 |
commit | a43657841b208072c98b4623bfa093fdb595f278 (patch) | |
tree | a910bcef44cf684b01a5aad5cdd9d23dd026e5ca /pkgs | |
parent | 2c921e157d956b9287a4f08034c08616314feeb7 (diff) |
feat(pkgs): Add stern-bin package
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/stern-bin.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/stern-bin.nix b/pkgs/stern-bin.nix new file mode 100644 index 000000000000..27cadcb510ed --- /dev/null +++ b/pkgs/stern-bin.nix @@ -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"; + }; +} + |