Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8buildGoModule rec {
9 pname = "tproxy";
10 version = "0.9.1";
11
12 src = fetchFromGitHub {
13 owner = "kevwan";
14 repo = "tproxy";
15 tag = "v${version}";
16 hash = "sha256-Ck7WtCxWiZxkKlx7D/N0EZmFEgrW7MpPj5ATvJxGXgg=";
17 };
18
19 vendorHash = "sha256-xYPF3RGrOQ1e2EPHtvlM9QKSE+V4cnG8f9JTS0hkAYU=";
20
21 ldflags = [
22 "-w"
23 "-s"
24 ];
25
26 passthru.updateScript = nix-update-script { };
27
28 meta = {
29 description = "CLI tool to proxy and analyze TCP connections";
30 homepage = "https://github.com/kevwan/tproxy";
31 changelog = "https://github.com/kevwan/tproxy/releases/tag/v${version}";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ DCsunset ];
34 mainProgram = "tproxy";
35 };
36}