2022-07-20 17:16:45 +00:00
|
|
|
{ fetchurl, lib, autoreconfHook, pkg-config, stdenv, fetchpatch, fetchFromGitHub }:
|
2008-03-17 13:41:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-01 20:48:53 +00:00
|
|
|
pname = "nss-mdns";
|
2022-07-20 17:16:45 +00:00
|
|
|
version = "v0.15.1";
|
2010-10-07 20:07:59 +00:00
|
|
|
|
2022-07-20 17:16:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lathiat";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-iRaf9/gu9VkGi1VbGpxvC5q+0M8ivezCz/oAKEg5V1M=";
|
2008-03-17 13:41:54 +00:00
|
|
|
};
|
|
|
|
|
2022-07-20 17:16:45 +00:00
|
|
|
buildInputs = [ autoreconfHook pkg-config ];
|
2008-03-17 13:41:54 +00:00
|
|
|
# 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 20:07:59 +00: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 20:07:59 +00:00
|
|
|
# Connect to the daemon at `/var/run/avahi-daemon/socket'.
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
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 01:11:51 +00:00
|
|
|
homepage = "http://0pointer.de/lennart/projects/nss-mdns/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2010-10-07 20:07:59 +00:00
|
|
|
|
|
|
|
# Supports both the GNU and FreeBSD NSS.
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux ++ lib.platforms.freebsd;
|
2010-10-07 20:07:59 +00:00
|
|
|
|
2013-08-16 21:44:33 +00:00
|
|
|
maintainers = [ ];
|
2008-03-17 13:41:54 +00:00
|
|
|
};
|
|
|
|
}
|