mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
cb41a67c47
svn path=/nixpkgs/trunk/; revision=25908
48 lines
1.4 KiB
Nix
48 lines
1.4 KiB
Nix
{ fetchurl, stdenv, pkgconfig, libdaemon, dbus, perl, perlXMLParser
|
|
, expat, gettext, intltool, glib, gtk, qt4 ? null, lib
|
|
, qt4Support ? false
|
|
, withLibdnsCompat ? false }:
|
|
|
|
assert qt4Support -> qt4 != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "avahi-0.6.28";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/download/${name}.tar.gz";
|
|
sha256 = "14gw611d3srn2r18a6g4y04r571w3l4lihiiaffryar1i2n0mn50";
|
|
};
|
|
|
|
patches = [ ./no-mkdir-localstatedir.patch ];
|
|
|
|
buildInputs = [
|
|
pkgconfig libdaemon dbus perl perlXMLParser glib expat
|
|
gettext intltool
|
|
]
|
|
++ (lib.optional qt4Support qt4);
|
|
|
|
configureFlags =
|
|
[ "--disable-qt3" "--disable-gdbm" "--disable-mono"
|
|
"--disable-gtk" "--disable-gtk3"
|
|
"--${if qt4Support then "enable" else "disable"}-qt4"
|
|
"--disable-python"
|
|
"--with-distro=none" "--localstatedir=/var"
|
|
] ++ stdenv.lib.optional withLibdnsCompat "--enable-compat-libdns_sd";
|
|
|
|
meta = {
|
|
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.
|
|
'';
|
|
|
|
homepage = http://avahi.org;
|
|
license = "LGPLv2+";
|
|
|
|
platforms = stdenv.lib.platforms.linux; # arbitrary choice
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
};
|
|
}
|