lol
1{ lib
2, stdenv
3, buildGoModule
4, fetchFromGitHub
5, libpcap
6}:
7
8buildGoModule rec {
9 pname = "dnsmonster";
10 version = "0.9.9";
11
12 src = fetchFromGitHub {
13 owner = "mosajjal";
14 repo = pname;
15 rev = "v${version}";
16 hash = "sha256-2k/WyAM8h2P2gCLt2J9m/ZekrzCyf/LULGOQYy5bsZs=";
17 };
18
19 vendorHash = "sha256-gAjR1MoudBAx1dxGObIVPqJdfehWkKckKtwM7sTP0w4=";
20
21 buildInputs = [
22 libpcap
23 ];
24
25 ldflags = [
26 "-s"
27 "-w"
28 "-X github.com/mosajjal/dnsmonster/util.releaseVersion=${version}"
29 ];
30
31 meta = with lib; {
32 description = "Passive DNS Capture and Monitoring Toolkit";
33 homepage = "https://github.com/mosajjal/dnsmonster";
34 changelog = "https://github.com/mosajjal/dnsmonster/releases/tag/v${version}";
35 license = licenses.gpl2Only;
36 maintainers = with maintainers; [ fab ];
37 broken = stdenv.isDarwin;
38 };
39}