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

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

34 lines
691 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2017-11-03 21:02:21 +01:00
2020-01-30 20:34:53 +01:00
buildGoModule rec {
pname = "mtail";
2021-05-18 19:02:50 +02:00
version = "3.0.0-rc46";
2017-11-03 21:02:21 +01:00
src = fetchFromGitHub {
owner = "google";
repo = "mtail";
rev = "v${version}";
2021-05-18 19:02:50 +02:00
sha256 = "sha256-/PiwrXr/oG/euWDOqcXvKKvyvQbp11Ks8LjmmJjDtdU=";
2017-11-03 21:02:21 +01:00
};
2021-05-18 19:02:50 +02:00
vendorSha256 = "sha256-aBGJ+JJjm9rt7Ic90iWY7vGtZQN0u6jlBnAMy1nivQM=";
doCheck = false;
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/
'';
2021-08-26 08:45:51 +02:00
ldflags = [
"-X main.Version=${version}"
2020-01-30 20:34:53 +01:00
];
2017-11-03 21:02: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";
};
}