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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
838 B
Nix
Raw Normal View History

{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
}:
2017-11-03 20:02:21 +00:00
2020-01-30 19:34:53 +00:00
buildGoModule rec {
pname = "mtail";
version = "3.0.0";
2017-11-03 20:02:21 +00:00
src = fetchFromGitHub {
owner = "google";
repo = "mtail";
rev = "v${version}";
hash = "sha256-1AUV3NyALJbR2CPpDJaK+Cq/w87jGFtp/iUkBFqanSE=";
2017-11-03 20:02:21 +00:00
};
vendorHash = "sha256-XKELlrsyumv3EbNdepLRgX7kPWxzo2ZdKrOwiM0myf8=";
2021-08-26 06:45:51 +00:00
ldflags = [
"-X=main.Branch=main"
"-X=main.Version=${version}"
"-X=main.Revision=${src.rev}"
2020-01-30 19:34:53 +00:00
];
2017-11-03 20:02:21 +00:00
# fails on darwin with: write unixgram -> <tmpdir>/rsyncd.log: write: message too long
doCheck = !stdenv.isDarwin;
meta = with lib; {
2017-11-03 20:02:21 +00:00
description = "Tool for extracting metrics from application logs";
homepage = "https://github.com/google/mtail";
license = licenses.asl20;
maintainers = with maintainers; [ nickcao ];
mainProgram = "mtail";
2017-11-03 20:02:21 +00:00
};
}