Upgeade avahi to 0.6.31

Additionally, link compatability files for dns_sd.h and howl as these are
needed to build mumble and potentially other avahi using derivations.
This commit is contained in:
William A. Kennington III 2013-12-02 19:48:20 -06:00
parent de529d6b4b
commit 4118e632e8

View file

@ -7,11 +7,11 @@
assert qt4Support -> qt4 != null; assert qt4Support -> qt4 != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "avahi-0.6.30"; name = "avahi-0.6.31";
src = fetchurl { src = fetchurl {
url = "${meta.homepage}/download/${name}.tar.gz"; url = "${meta.homepage}/download/${name}.tar.gz";
sha256 = "07zzaxs81rbrfhj0rnq616c3j37f3g84dn7d4q3h5l1r4dn33r7r"; sha256 = "0j5b5ld6bjyh3qhd2nw0jb84znq0wqai7fsrdzg7bpg24jdp2wl3";
}; };
patches = [ ./no-mkdir-localstatedir.patch ]; patches = [ ./no-mkdir-localstatedir.patch ];
@ -37,6 +37,13 @@ stdenv.mkDerivation rec {
avahi-core/socket.c avahi-core/socket.c
''; '';
postInstall = ''
# Maintain compat for mdnsresponder and howl
${if withLibdnssdCompat then "ln -s avahi-compat-libdns_sd/dns_sd.h $out/include/dns_sd.h" else ""}
ln -s avahi-compat-howl $out/include/howl
ln -s avahi-compat-howl.pc $out/lib/pkgconfig/howl.pc
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "mDNS/DNS-SD implementation"; description = "mDNS/DNS-SD implementation";
homepage = http://avahi.org; homepage = http://avahi.org;