Merge pull request #182236 from graysonhead/nss-mdns-update
nss-mdns: 0.10.0 -> 0.15.1
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
{ fetchurl, lib, stdenv, fetchpatch }:
|
||||
{ fetchurl, lib, autoreconfHook, pkg-config, stdenv, fetchpatch, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nss-mdns";
|
||||
version = "0.10";
|
||||
version = "v0.15.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${version}.tar.gz";
|
||||
sha256 = "0vgs6j0qsl0mwzh5a0m0bykr7x6bx79vnbyn0r3q289rghp3qs0y";
|
||||
src = fetchFromGitHub {
|
||||
owner = "lathiat";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-iRaf9/gu9VkGi1VbGpxvC5q+0M8ivezCz/oAKEg5V1M=";
|
||||
};
|
||||
|
||||
buildInputs = [ autoreconfHook pkg-config ];
|
||||
# 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.
|
||||
@@ -21,15 +24,6 @@ stdenv.mkDerivation rec {
|
||||
"--localstatedir=/var"
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Provide compat definition for libc lacking <nss.h> (e.g. musl)
|
||||
(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";
|
||||
})
|
||||
];
|
||||
|
||||
|
||||
meta = {
|
||||
description = "The mDNS Name Service Switch (NSS) plug-in";
|
||||
longDescription = ''
|
||||
|
||||
Reference in New Issue
Block a user