1 { lib, stdenv, fetchFromGitHub
2 , asciidoctor, autoreconfHook, pkg-config
3 , boost, libctemplate, libmaxminddb, libpcap, libtins, openssl, protobuf, xz, zlib, catch2
4 , cbor-diag, cddl, diffutils, file, mktemp, netcat, tcpdump, wireshark-cli
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 fetchSubmodules = true;
16 hash = "sha256-5Z14suhO5ghhmZsSj4DsSoKm+ct2gQFO6qxhjmx4Xm4=";
20 ./patches/add-a-space-after-type-in-check-response-opt-sh.patch
41 patchShebangs test-scripts/
42 cp ${catch2}/include/catch2/catch.hpp tests/catch.hpp
46 substituteInPlace configure \
47 --replace "/usr/bin/file" "${file}/bin/file"
51 "--with-boost-libdir=${boost.out}/lib"
52 "--with-boost=${boost.dev}"
54 enableParallelBuilding = true;
56 doCheck = !stdenv.hostPlatform.isDarwin; # check-dnstap.sh failing on Darwin
69 description = "Tools to capture DNS traffic and record it in C-DNS files";
70 homepage = "https://dns-stats.org/";
71 changelog = "https://github.com/dns-stats/compactor/raw/${version}/ChangeLog.txt";
72 license = licenses.mpl20;
73 maintainers = with maintainers; [ fdns ];
74 platforms = platforms.unix;