knot-dns: add support for dnstap (#344150)

This commit is contained in:
Martin Weinelt 2024-09-24 16:50:00 +02:00 committed by GitHub
commit a684a1d764
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
{ lib, stdenv, fetchurl, pkg-config, gnutls, liburcu, lmdb, libcap_ng, libidn2, libunistring
, systemd, nettle, libedit, zlib, libiconv, libintl, libmaxminddb, libbpf, nghttp2, libmnl
, ngtcp2-gnutls, xdp-tools
, fstrm, protobufc
, sphinx
, autoreconfHook
, nixosTests, knot-resolver, knot-dns, runCommandLocal
@ -21,6 +22,7 @@ stdenv.mkDerivation rec {
"--with-configdir=/etc/knot"
"--with-rundir=/run/knot"
"--with-storage=/var/lib/knot"
"--with-module-dnstap" "--enable-dnstap"
];
patches = [
@ -40,7 +42,7 @@ stdenv.mkDerivation rec {
ngtcp2-gnutls # DoQ support in kdig (and elsewhere but not much use there yet)
libmaxminddb # optional for geoip module (it's tiny)
# without sphinx &al. for developer documentation
# TODO: add dnstap support?
fstrm protobufc # dnstap support
] ++ lib.optionals stdenv.isLinux [
libcap_ng systemd
xdp-tools libbpf libmnl # XDP support (it's Linux kernel API)