2008-02-18 20:48:36 +00:00
|
|
|
sha256: args: with args;
|
|
|
|
|
2008-03-06 16:42:34 +00:00
|
|
|
assert qt4Support -> qt4 != null;
|
|
|
|
|
2008-02-18 20:48:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "avahi-" + version;
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/${name}.tar.gz";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2008-03-06 16:42:34 +00:00
|
|
|
buildInputs = [pkgconfig libdaemon dbus perl perlXMLParser glib expat]
|
|
|
|
++ lib.optional qt4Support qt4;
|
2008-02-18 20:48:36 +00:00
|
|
|
|
2008-03-06 16:42:34 +00:00
|
|
|
configureFlags = ''
|
|
|
|
--disable-qt3 --disable-gdbm --disable-gtk --disable-mono
|
|
|
|
--${if qt4Support then "enable" else "disable"}-qt4
|
|
|
|
--with-distro=none --enable-shared --disable-static --disable-python
|
|
|
|
'';
|
2008-02-18 20:48:36 +00:00
|
|
|
|
|
|
|
meta = {
|
2008-03-06 16:42:34 +00:00
|
|
|
description = ''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+";
|
2008-02-18 20:48:36 +00:00
|
|
|
};
|
|
|
|
}
|