1 { lib, autoreconfHook, pkg-config, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-iRaf9/gu9VkGi1VbGpxvC5q+0M8ivezCz/oAKEg5V1M=";
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
16 # Note: Although `nss-mdns' works by talking to `avahi-daemon', it
17 # doesn't depend on the Avahi libraries. Instead, it contains
18 # hand-written D-Bus code to talk to the Avahi daemon.
21 # Try to use the Avahi daemon before resolving on our own.
23 # Connect to the daemon at `/var/run/avahi-daemon/socket'.
24 "--localstatedir=/var"
25 # Read configuration at `/etc/mdns.allow`, not `$out/etc/mdns.allow`.
30 description = "MDNS Name Service Switch (NSS) plug-in";
32 `nss-mdns' is a plugin for the GNU Name Service Switch (NSS)
33 functionality of the GNU C Library (glibc) providing host name
34 resolution via Multicast DNS (mDNS), effectively allowing name
35 resolution by common Unix/Linux programs in the ad-hoc mDNS
38 homepage = "https://github.com/avahi/nss-mdns/";
39 license = lib.licenses.lgpl2Plus;
40 # Supports both the GNU and FreeBSD NSS.
41 platforms = lib.platforms.gnu ++ lib.platforms.linux ++ lib.platforms.freebsd;