knot-dns: only depend on libmnl on Linux

I didn't realize that it's only relevant for Linux,
and it unnecessarily disabled builds for *-darwin.
This commit is contained in:
Vladimír Čunát 2021-08-02 18:41:36 +02:00
parent ce1485112d
commit 18ed0855ba
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -40,12 +40,11 @@ stdenv.mkDerivation rec {
libiconv lmdb libintl
nghttp2 # DoH support in kdig
libmaxminddb # optional for geoip module (it's tiny)
libmnl # required for knot >= 3.1
# without sphinx &al. for developer documentation
# TODO: add dnstap support?
] ++ lib.optionals stdenv.isLinux [
libcap_ng systemd
libbpf # XDP support
libbpf libmnl # XDP support (it's Linux kernel API)
] ++ lib.optional stdenv.isDarwin zlib; # perhaps due to gnutls
enableParallelBuilding = true;