2018-05-01 00:45:22 +01:00
|
|
|
{ fetchurl, stdenv, fetchpatch }:
|
2008-03-17 13:41:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nss-mdns-0.10";
|
2010-10-07 21:07:59 +01:00
|
|
|
|
2008-03-17 13:41:54 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://0pointer.de/lennart/projects/nss-mdns/${name}.tar.gz";
|
|
|
|
sha256 = "0vgs6j0qsl0mwzh5a0m0bykr7x6bx79vnbyn0r3q289rghp3qs0y";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Note: Although `nss-mdns' works by talking to `avahi-daemon', it
|
|
|
|
# doesn't depend on the Avahi libraries. Instead, it contains
|
|
|
|
# hand-written D-Bus code to talk to the Avahi daemon.
|
|
|
|
|
2010-10-07 21:07:59 +01:00
|
|
|
configureFlags =
|
|
|
|
[ # Try to use the Avahi daemon before resolving on our own.
|
|
|
|
"--enable-avahi"
|
2008-03-17 13:41:54 +00:00
|
|
|
|
2010-10-07 21:07:59 +01:00
|
|
|
# Connect to the daemon at `/var/run/avahi-daemon/socket'.
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
2008-03-17 13:41:54 +00:00
|
|
|
|
2018-05-01 00:45:22 +01:00
|
|
|
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl
|
|
|
|
(
|
|
|
|
fetchpatch
|
|
|
|
{
|
|
|
|
url = "https://raw.githubusercontent.com/openembedded/openembedded-core/94f780e889f194b67a48587ac68b3200288bee10/meta/recipes-connectivity/libnss-mdns/libnss-mdns/0001-check-for-nss.h.patch";
|
|
|
|
sha256 = "1l1kjbdw8z31br4vib3l5b85jy7kxin760a2f24lww8v6lqdpgds";
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2008-03-17 13:41:54 +00:00
|
|
|
meta = {
|
2008-03-20 14:35:03 +00:00
|
|
|
description = "The mDNS Name Service Switch (NSS) plug-in";
|
|
|
|
longDescription = ''
|
|
|
|
`nss-mdns' is a plugin for the GNU Name Service Switch (NSS)
|
|
|
|
functionality of the GNU C Library (glibc) providing host name
|
|
|
|
resolution via Multicast DNS (mDNS), effectively allowing name
|
|
|
|
resolution by common Unix/Linux programs in the ad-hoc mDNS
|
|
|
|
domain `.local'.
|
|
|
|
'';
|
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://0pointer.de/lennart/projects/nss-mdns/";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2010-10-07 21:07:59 +01:00
|
|
|
|
|
|
|
# Supports both the GNU and FreeBSD NSS.
|
2018-05-01 00:45:22 +01:00
|
|
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux ++ stdenv.lib.platforms.freebsd;
|
2010-10-07 21:07:59 +01:00
|
|
|
|
2013-08-16 22:44:33 +01:00
|
|
|
maintainers = [ ];
|
2008-03-17 13:41:54 +00:00
|
|
|
};
|
|
|
|
}
|