avahi: fix static build

fixes `nix-build -A pkgsStatic.avahi`
This commit is contained in:
Colin 2026-01-15 09:04:21 +00:00
commit facfd506e2

View file

@ -11,6 +11,7 @@
expat,
gettext,
glib,
autoconf-archive,
autoreconfHook,
libiconv,
libevent,
@ -142,6 +143,12 @@ stdenv.mkDerivation rec {
})
];
postPatch = ''
# Remove the vendored ACX_PTHREAD macro in favor of the more up-to-date
# implementation from autoconf-archive, especially to support static builds.
rm common/acx_pthread.m4
'';
depsBuildBuild = [
pkg-config
];
@ -150,6 +157,7 @@ stdenv.mkDerivation rec {
pkg-config
gettext
glib
autoconf-archive
autoreconfHook
];