mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 09:53:17 +00:00
34 lines
708 B
Nix
34 lines
708 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "mtail";
|
|
version = "3.0.0-rc46";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "mtail";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/PiwrXr/oG/euWDOqcXvKKvyvQbp11Ks8LjmmJjDtdU=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-aBGJ+JJjm9rt7Ic90iWY7vGtZQN0u6jlBnAMy1nivQM=";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "cmd/mtail" ];
|
|
|
|
preBuild = ''
|
|
go generate -x ./internal/vm/
|
|
'';
|
|
|
|
buildFlagsArray = [
|
|
"-ldflags=-X main.Version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
license = licenses.asl20;
|
|
homepage = "https://github.com/google/mtail";
|
|
description = "Tool for extracting metrics from application logs";
|
|
};
|
|
}
|