knot-resolver_5: fix tests with cmocka 2 (#478538)

This commit is contained in:
Rick van Schijndel
2026-01-12 19:42:00 +00:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
fetchpatch,
# native deps.
runCommand,
pkg-config,
@@ -47,6 +48,15 @@ let
"dev"
];
patches = [
(fetchpatch {
# https://gitlab.nic.cz/knot/knot-resolver/-/merge_requests/1772
url = "https://gitlab.nic.cz/knot/knot-resolver/-/commit/f4eaf8e69cc9839f68b613d0be10103e05c57fe9.patch";
hash = "sha256-u/YQ85Jb5OxV8G3HeVPQUw0cmA+TLIDPze9mreqJGL4=";
excludes = [ "daemon/ratelimiting.test/tests.inc.c" ];
})
];
# Path fixups for the NixOS service.
postPatch = ''
patch meson.build <<EOF