Skip to content

Commit 6452f8e

Browse files
authored
mtail: 3.0.23 -> 3.2.4 (#413404)
2 parents 70d6e80 + 99d0c8b commit 6452f8e

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

pkgs/by-name/mt/mtail/package.nix

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@
33
stdenv,
44
buildGoModule,
55
fetchFromGitHub,
6+
gotools,
67
}:
78

89
buildGoModule rec {
910
pname = "mtail";
10-
version = "3.0.23";
11+
version = "3.2.4";
1112

1213
src = fetchFromGitHub {
1314
owner = "jaqx0r";
1415
repo = "mtail";
1516
rev = "v${version}";
16-
hash = "sha256-B/to05/qORplhNyz0s7t/WgpmOJ6UZoKnmJfqaf6Htc=";
17+
hash = "sha256-3ox+EXd5/Rh3N/7GbX+JUmH4C9j/Er+REkUHZndTxw0=";
1718
};
1819

19-
vendorHash = "sha256-jE1tcZJ7TaMC3yegBHE3Zad9sF0EfbHxDA8ffehNL4U=";
20+
vendorHash = "sha256-7EQFO7dlVhBwHdY6c3WmxJo4WdCUJbWKw5P4fL6jBsA=";
21+
22+
nativeBuildInputs = [
23+
gotools # goyacc
24+
];
2025

2126
ldflags = [
2227
"-X=main.Branch=main"
@@ -27,11 +32,20 @@ buildGoModule rec {
2732
# fails on darwin with: write unixgram -> <tmpdir>/rsyncd.log: write: message too long
2833
doCheck = !stdenv.hostPlatform.isDarwin;
2934

30-
meta = with lib; {
35+
checkFlags = [
36+
# can only be executed under bazel
37+
"-skip=TestExecMtail"
38+
];
39+
40+
preBuild = ''
41+
GOOS= GOARCH= go generate ./...
42+
'';
43+
44+
meta = {
3145
description = "Tool for extracting metrics from application logs";
3246
homepage = "https://github.com/jaqx0r/mtail";
33-
license = licenses.asl20;
34-
maintainers = with maintainers; [ nickcao ];
47+
license = lib.licenses.asl20;
48+
maintainers = with lib.maintainers; [ nickcao ];
3549
mainProgram = "mtail";
3650
};
3751
}

0 commit comments

Comments
 (0)