summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/et/ethr/package.nix
blob: d0dfd5c30f5b3fbaeae3f08efda1189ac21d49cc (plain)
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
27
28
29
30
31
32
33
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule {
  pname = "ethr";
  version = "1.0.0-unstable-2025-12-10";

  src = fetchFromGitHub {
    owner = "microsoft";
    repo = "ethr";
    rev = "86e07049d11357f69da89317d55f11bed62e0007";
    hash = "sha256-lkhqPq2EDI3J8jiNx0Gygf8fDZvtZ2Pw3rRSt4HVBq8=";
  };

  vendorHash = "sha256-UHZNe6vlqdYaHzt2IZ5HTQxqR0sf8m9Lfo5tXvpiFlg=";

  # Strip symbol table and DWARF debug info to reduce binary size
  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    description = "Comprehensive Network Measurement Tool for TCP, UDP & ICMP";
    homepage = "https://github.com/microsoft/ethr";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.philiptaron ];
    mainProgram = "ethr";
  };
}