2008-12-12 23:02:11 +00:00
|
|
|
{ fetchurl, stdenv, pkgconfig, libdaemon, dbus, perl, perlXMLParser
|
|
|
|
, expat, gettext, intltool, glib, gtk, qt4 ? null, lib
|
2009-10-06 05:43:51 +00:00
|
|
|
, qt4Support ? 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 {
|
2009-04-14 11:13:13 +00:00
|
|
|
name = "avahi-0.6.25";
|
2008-02-18 20:48:36 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/${name}.tar.gz";
|
2009-04-14 11:13:13 +00:00
|
|
|
sha256 = "0ndsrd357igp0m2cd8vwr16gmh6axlndf34hlg7qqnsiymsdj84j";
|
2008-02-18 20:48:36 +00:00
|
|
|
};
|
|
|
|
|
2010-05-08 22:24:39 +00:00
|
|
|
patches = [ ./no-mkdir-localstatedir.patch ];
|
|
|
|
|
2008-12-12 23:02:11 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig libdaemon dbus perl perlXMLParser glib expat
|
|
|
|
gettext intltool
|
|
|
|
]
|
2008-03-06 16:42:34 +00:00
|
|
|
++ lib.optional qt4Support qt4;
|
2008-02-18 20:48:36 +00:00
|
|
|
|
2010-05-08 22:24:39 +00:00
|
|
|
configureFlags =
|
|
|
|
[ "--disable-qt3" "--disable-gdbm" "--disable-gtk" "--disable-mono"
|
|
|
|
"--${if qt4Support then "enable" else "disable"}-qt4" "--disable-python"
|
|
|
|
"--with-distro=none" "--localstatedir=/var"
|
|
|
|
];
|
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
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2008-02-18 20:48:36 +00:00
|
|
|
};
|
|
|
|
}
|