avahi: set AVAHI_SERVICE_DIR to well-known location

Avahi now uses `/etc/avahi/services` instead of its
store path to look for files with service definitions.
This commit is contained in:
WilliButz 2019-05-22 20:46:10 +02:00
parent ee86a325dd
commit c260e9e399
No known key found for this signature in database
GPG key ID: 92582A10F1179CB2

View file

@ -44,6 +44,8 @@ stdenv.mkDerivation rec {
# autoipd won't build on darwin
++ stdenv.lib.optional stdenv.isDarwin "--disable-autoipd";
NIX_CFLAGS_COMPILE = "-DAVAHI_SERVICE_DIR=\"/etc/avahi/services\"";
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i '20 i\
#define __APPLE_USE_RFC_2292' \