2020-03-27 07:33:21 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2017-11-03 20:02:21 +00:00
|
|
|
|
2020-01-30 19:34:53 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mtail";
|
2021-01-21 15:05:32 +00:00
|
|
|
version = "3.0.0-rc43";
|
2017-11-03 20:02:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "mtail";
|
|
|
|
rev = "v${version}";
|
2021-01-21 15:05:32 +00:00
|
|
|
sha256 = "1lw7gz6fh3z7j4hin4q6y3wxxl4sgd4li1c0z60hmvfs671n6dg9";
|
2017-11-03 20:02:21 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:48:38 +00:00
|
|
|
vendorSha256 = "0zymch6xfnyzjzizrjljmscqf8m99580zxjwc2rb9hn0324shcwq";
|
2020-08-04 01:26:27 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-01-30 19:34:53 +00:00
|
|
|
subPackages = [ "cmd/mtail" ];
|
2017-11-03 20:02:21 +00:00
|
|
|
|
2020-01-30 19:34:53 +00:00
|
|
|
preBuild = ''
|
|
|
|
go generate -x ./internal/vm/
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=-X main.Version=${version}"
|
|
|
|
];
|
2017-11-03 20:02:21 +00:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2017-11-03 20:02:21 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/google/mtail";
|
|
|
|
description = "Tool for extracting metrics from application logs";
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|