2008-12-13 00:02:11 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, libdaemon, dbus, perl, perlXMLParser
|
|
|
|
, expat, gettext, intltool, glib, gtk, qt4 ? null, lib
|
|
|
|
, qt4Support ? false }:
|
2008-02-18 21:48:36 +01:00
|
|
|
|
2008-03-06 17:42:34 +01:00
|
|
|
assert qt4Support -> qt4 != null;
|
|
|
|
|
2008-02-18 21:48:36 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-12-13 00:02:11 +01:00
|
|
|
name = "avahi-0.6.24";
|
2008-02-18 21:48:36 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/${name}.tar.gz";
|
2008-12-13 00:02:11 +01:00
|
|
|
sha256 = "0l5rsi4s7az7cs9p4aqs77v7jrh95iiwwx0ivksmivc8c7a70016";
|
2008-02-18 21:48:36 +01:00
|
|
|
};
|
|
|
|
|
2008-12-13 00:02:11 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig libdaemon dbus perl perlXMLParser glib expat
|
|
|
|
gettext intltool
|
|
|
|
]
|
2008-03-06 17:42:34 +01:00
|
|
|
++ lib.optional qt4Support qt4;
|
2008-02-18 21:48:36 +01:00
|
|
|
|
2008-03-06 17:42:34 +01: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 21:48:36 +01:00
|
|
|
|
|
|
|
meta = {
|
2008-03-20 15:35:03 +01: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 21:48:36 +01:00
|
|
|
homepage = http://avahi.org;
|
2008-03-06 17:42:34 +01:00
|
|
|
license = "LGPLv2+";
|
2008-02-18 21:48:36 +01:00
|
|
|
};
|
|
|
|
}
|