about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/monitoring/mtail/default.nix
blob: 31a6501ea3a555533d3ee5afa4bd749000c4ac0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, fetchFromGitHub, gotools, buildGoPackage }:

buildGoPackage rec {
  pname = "mtail";
  version = "3.0.0-rc4";
  goPackagePath = "github.com/google/mtail";

  src = fetchFromGitHub {
    owner = "google";
    repo = "mtail";
    rev = "v${version}";
    sha256 = "1n7pqvid48ayn15qfpgpbsx0iqg24x08wphzpc08mlfw47gq7jg3";
  };

  buildInputs = [ gotools ];
  goDeps = ./deps.nix;
  patches = [ ./fix-gopath.patch ];
  preBuild = "go generate -x ./go/src/github.com/google/mtail/vm/";


  meta = with lib; {
    license = licenses.asl20;
    homepage = "https://github.com/google/mtail";
    description = "Tool for extracting metrics from application logs";
  };
}