@@ -1,6 +1,7 @@
11{ lib, stdenv, fetchurl, pkg-config, gnutls, liburcu, lmdb, libcap_ng, libidn2, libunistring
22, systemd, nettle, libedit, zlib, libiconv, libintl, libmaxminddb, libbpf, nghttp2, libmnl
33, autoreconfHook, nixosTests
4+, fetchpatch
45}:
56
67stdenv.mkDerivation rec {
@@ -25,6 +26,11 @@ stdenv.mkDerivation rec {
2526 # They are later created from NixOS itself.
2627 ./dont-create-run-time-dirs.patch
2728 ./runtime-deps.patch
29+ # rename task_t to worker_task_t to fix redefinition issues on (aach64-)darwin
30+ (fetchpatch {
31+ url = "https://gitlab.nic.cz/knot/knot-dns/-/commit/a70b718085f9b97e556970444313c37a702a60f7.diff";
32+ sha256 = "0m776pb9iga0lj2gadk23shfrcfrsrzlyaj8800klw7xh6qq32bm";
33+ })
2834 ];
2935
3036 nativeBuildInputs = [ pkg-config autoreconfHook ];