diff --git a/pkgs/tools/networking/dnsmon-go/default.nix b/pkgs/tools/networking/dnsmon-go/default.nix new file mode 100644 index 000000000000..26f705c67fb8 --- /dev/null +++ b/pkgs/tools/networking/dnsmon-go/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 76d16b9519df..3df8ad88d758 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5217,6 +5217,8 @@ with pkgs; dnsmasq = callPackage ../tools/networking/dnsmasq { }; + dnsmon-go = callPackage ../tools/networking/dnsmon-go { }; + dnspeep = callPackage ../tools/security/dnspeep { }; dnsproxy = callPackage ../tools/networking/dnsproxy { };