knot-dns: add support for dnstap

This grows the whole closure minimally (0.3 MiB by du),
and it can be useful in some deployments.
This commit is contained in:
Vladimír Čunát 2024-09-24 09:32:37 +02:00
parent 32f0bfd993
commit 54cf5519c8
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

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)