Skip to content

Commit 1aeb31e

Browse files
nftrace: init at 0.1.0 (#390439)
2 parents 1f5f27f + 229edc7 commit 1aeb31e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
buildGoModule,
3+
fetchFromGitHub,
4+
lib,
5+
nix-update-script,
6+
versionCheckHook,
7+
}:
8+
9+
buildGoModule rec {
10+
pname = "nftrace";
11+
version = "0.1.0";
12+
13+
src = fetchFromGitHub {
14+
owner = "aojea";
15+
repo = "nftrace";
16+
tag = "v${version}";
17+
hash = "sha256-MTLl3XLDIjcK5GymW7D3B8+/A6W+kQ4cz5bbrfo6fQc=";
18+
};
19+
20+
vendorHash = "sha256-UrsvUMdLWGX2QRFLxBLvMW1B5vZdcWI/lpyKiNAtA2o=";
21+
22+
ldflags = [
23+
"-s"
24+
"-w"
25+
];
26+
27+
nativeInstallCheckInputs = [ versionCheckHook ];
28+
29+
passthru.updateScript = nix-update-script { };
30+
31+
meta = {
32+
description = "Commodity tool to use nftables trace functionality";
33+
homepage = "https://github.com/aojea/nftrace";
34+
changelog = "https://github.com/aojea/nftrace/releases/tag/v${version}";
35+
license = lib.licenses.asl20;
36+
maintainers = [ lib.maintainers.jmbaur ];
37+
mainProgram = "nftrace";
38+
};
39+
}

0 commit comments

Comments
 (0)