1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/monitoring/mtail/default.nix

31 lines
686 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-01-30 19:34:53 +00:00
version = "3.0.0-rc35";
2017-11-03 20:02:21 +00:00
src = fetchFromGitHub {
owner = "google";
repo = "mtail";
rev = "v${version}";
2020-01-30 19:34:53 +00:00
sha256 = "04hzr0cw0dq7hmqvp1lhm5wl239yrxmcpsl25sqk74wy06cgrrqd";
2017-11-03 20:02:21 +00:00
};
2020-01-30 19:34:53 +00:00
modSha256 = "0h3q1qd9a01wlfkk0yv74a4bk5nilpsppq522cv7kl8ysnrjh5yi";
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";
};
}