nixpkgs/pkgs/servers/monitoring/mtail/default.nix

34 lines
710 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2017-11-03 20:02:21 +00:00
2020-01-30 19:34:53 +00:00
buildGoModule rec {
pname = "mtail";
2020-06-29 03:54:28 +00:00
version = "3.0.0-rc36";
2017-11-03 20:02:21 +00:00
src = fetchFromGitHub {
owner = "google";
repo = "mtail";
rev = "v${version}";
2020-06-29 03:54:28 +00:00
sha256 = "1xdpjzcr143f7430wl9l6zzq9yhbkirr3fbfw60f10zpglrcx8a4";
2017-11-03 20:02:21 +00:00
};
2020-06-29 03:54:28 +00:00
vendorSha256 = "02fnvy897cygmipc5snza556qihjwrp1lf9qi9f5dzarphd6d0pw";
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
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";
};
}