summary refs log tree commit diff
path: root/pkgs/tools/networking/dnsmon-go/default.nix
blob: 26f705c67fb869aaeb883a36a2239e0116403eab (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
27
28
29
30
{ lib
, buildGoModule
, fetchFromGitHub
, libpcap
}:

buildGoModule rec {
  pname = "dnsmon-go";
  version = "unstable-2022-05-13";

  src = fetchFromGitHub {
    owner = "jonpulsifer";
    repo = pname;
    rev = "ec1d59f1f1314ce310ad4c04d2924e0ebd857f1d";
    hash = "sha256-lAJ2bjs5VLzrHd09eFK4X0V/cCee2QsgdgiKq+y2c10=";
  };

  vendorSha256 = "sha256-aiX+NGUsFK0N9vC5baAHHMr28CbF5Xa4WgYLFFLBYTs=";

  buildInputs = [
    libpcap
  ];

  meta = with lib; {
    description = "Tool to collect DNS traffic";
    homepage = "https://github.com/jonpulsifer/dnsmon-go";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}