dnsperf: add musl fix (#370881)

Arne Keller b6a1d9c9 4e1c04d5

Changed files
+11
pkgs
by-name
dn
dnsperf
+11
pkgs/by-name/dn/dnsperf/package.nix
···
stdenv,
autoreconfHook,
fetchFromGitHub,
+
fetchpatch,
ldns,
libck,
nghttp2,
···
libck
nghttp2
openssl
+
];
+
+
patches = lib.optionals stdenv.hostPlatform.isMusl [
+
# dnsperf doesn't have support for musl (https://github.com/DNS-OARC/dnsperf/issues/265)
+
# and strerror_r returns int on non-glibc: https://github.com/NixOS/nixpkgs/issues/370498
+
# TODO: remove if better non-glibc detection is ever upstreamed
+
(fetchpatch {
+
url = "https://gitlab.alpinelinux.org/alpine/aports/-/raw/5bd92b8f86a0bf15dddf8fa180adf14344d6cc15/testing/dnsperf/musl-perf_strerror_r.patch";
+
hash = "sha256-yTJHXkti/xSklmVfAV45lEsOiHy7oL1phImNTNtcPkM=";
+
})
];
doCheck = true;