2020-03-27 08:33:21 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2017-11-03 21:02:21 +01:00
|
|
|
|
2020-01-30 20:34:53 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mtail";
|
2020-01-30 20:34:53 +01:00
|
|
|
version = "3.0.0-rc35";
|
2017-11-03 21:02:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "mtail";
|
|
|
|
rev = "v${version}";
|
2020-01-30 20:34:53 +01:00
|
|
|
sha256 = "04hzr0cw0dq7hmqvp1lhm5wl239yrxmcpsl25sqk74wy06cgrrqd";
|
2017-11-03 21:02:21 +01:00
|
|
|
};
|
|
|
|
|
2020-05-01 03:59:00 +02:00
|
|
|
vendorSha256 = "1km3ldqz35lpkglp9n332vxr38xxfqyij1fi2qq0agyyydbvakj5";
|
2020-01-30 20:34:53 +01:00
|
|
|
subPackages = [ "cmd/mtail" ];
|
2017-11-03 21:02:21 +01:00
|
|
|
|
2020-01-30 20:34:53 +01:00
|
|
|
preBuild = ''
|
|
|
|
go generate -x ./internal/vm/
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=-X main.Version=${version}"
|
|
|
|
];
|
2017-11-03 21:02:21 +01:00
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2017-11-03 21:02:21 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/google/mtail";
|
|
|
|
description = "Tool for extracting metrics from application logs";
|
|
|
|
};
|
2020-05-01 03:59:00 +02:00
|
|
|
}
|