Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions pkgs/tools/networking/kail/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
name = "kail-${version}";
version = "0.6.0";

goPackagePath = "github.com/boz/kail";

src = fetchFromGitHub {
owner = "boz";
repo = "kail";
rev = "v${version}";
sha256 = "17ybcncdjssil4bn3n2jp1asfcpl8vj560afb2mry9032qrryvx9";
};

# regenerate deps.nix using following steps:
#
# go get -u github.com/boz/kail
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to checkout the release before generating dependencies. It seems we are building the v0.6.0 with the deps of master.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added comment to checkout actual version

# cd $GOPATH/src/github.com/boz/kail
# git checkout <version>
# dep init
# dep2nix
goDeps = ./deps.nix;

meta = with stdenv.lib; {
description = "Kubernetes log viewer";
homepage = https://github.com/boz/kail;
license = licenses.mit;
maintainers = with maintainers; [ offline ];
};
}
Loading