2008-12-12 23:02:11 +00:00
|
|
|
{ fetchurl, stdenv, pkgconfig, libdaemon, dbus, perl, perlXMLParser
|
2012-04-05 15:11:19 +00:00
|
|
|
, expat, gettext, intltool, glib, qt4 ? null, libiconvOrEmpty
|
2011-02-11 15:56:29 +00:00
|
|
|
, qt4Support ? false
|
2011-09-18 13:54:54 +00:00
|
|
|
, withLibdnssdCompat ? false }:
|
2008-02-18 20:48:36 +00:00
|
|
|
|
2008-03-06 16:42:34 +00:00
|
|
|
assert qt4Support -> qt4 != null;
|
|
|
|
|
2008-02-18 20:48:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-09-18 13:54:54 +00:00
|
|
|
name = "avahi-0.6.30";
|
2010-10-05 15:15:49 +00:00
|
|
|
|
2008-02-18 20:48:36 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/${name}.tar.gz";
|
2011-09-18 13:54:54 +00:00
|
|
|
sha256 = "07zzaxs81rbrfhj0rnq616c3j37f3g84dn7d4q3h5l1r4dn33r7r";
|
2008-02-18 20:48:36 +00:00
|
|
|
};
|
|
|
|
|
2010-05-08 22:24:39 +00:00
|
|
|
patches = [ ./no-mkdir-localstatedir.patch ];
|
|
|
|
|
2011-09-18 13:54:54 +00:00
|
|
|
buildInputs = [ libdaemon dbus perl perlXMLParser glib expat ]
|
2012-04-05 15:11:19 +00:00
|
|
|
++ (stdenv.lib.optional qt4Support qt4)
|
|
|
|
++ libiconvOrEmpty;
|
2008-02-18 20:48:36 +00:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext intltool ];
|
2011-09-18 13:54:54 +00:00
|
|
|
|
2010-05-08 22:24:39 +00:00
|
|
|
configureFlags =
|
2010-07-13 16:32:22 +00:00
|
|
|
[ "--disable-qt3" "--disable-gdbm" "--disable-mono"
|
|
|
|
"--disable-gtk" "--disable-gtk3"
|
|
|
|
"--${if qt4Support then "enable" else "disable"}-qt4"
|
|
|
|
"--disable-python"
|
2010-05-08 22:24:39 +00:00
|
|
|
"--with-distro=none" "--localstatedir=/var"
|
2011-09-18 13:54:54 +00:00
|
|
|
] ++ stdenv.lib.optional withLibdnssdCompat "--enable-compat-libdns_sd";
|
2008-02-18 20:48:36 +00:00
|
|
|
|
|
|
|
meta = {
|
2008-03-20 14:35:03 +00:00
|
|
|
description = "Avahi, an mDNS/DNS-SD implementation";
|
|
|
|
longDescription = ''
|
|
|
|
Avahi is a system which facilitates service discovery on a local
|
|
|
|
network. It is an implementation of the mDNS (for "Multicast
|
|
|
|
DNS") and DNS-SD (for "DNS-Based Service Discovery")
|
|
|
|
protocols.
|
|
|
|
'';
|
|
|
|
|
2008-02-18 20:48:36 +00:00
|
|
|
homepage = http://avahi.org;
|
2008-03-06 16:42:34 +00:00
|
|
|
license = "LGPLv2+";
|
2010-05-08 22:24:39 +00:00
|
|
|
|
2011-01-05 09:46:50 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux; # arbitrary choice
|
2010-05-08 22:24:39 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2008-02-18 20:48:36 +00:00
|
|
|
};
|
|
|
|
}
|