2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mtail";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "3.0.0-rc38";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "mtail";
|
|
|
|
rev = "v${version}";
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "0a9xwv8c4ivpyh1hm3nzssnqpr4c6br0qb27mz3sy6fp2p46c0ms";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
vendorSha256 = "03hicp3h4jrq7ihirpcmgkk5siiny3w2wnwhibaf36j9xllmf57f";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
subPackages = [ "cmd/mtail" ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
go generate -x ./internal/vm/
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=-X main.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/google/mtail";
|
|
|
|
description = "Tool for extracting metrics from application logs";
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|