Merge pull request #297755 from toonn/nssmdns-sysconfdir

nssmdns: Fix configuration location
This commit is contained in:
Sandro 2024-03-22 18:26:58 +01:00 committed by GitHub
commit e2c423b710
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
version = "0.15.1";
src = fetchFromGitHub {
owner = "lathiat";
owner = "avahi";
repo = "nss-mdns";
rev = "v${version}";
hash = "sha256-iRaf9/gu9VkGi1VbGpxvC5q+0M8ivezCz/oAKEg5V1M=";
@ -22,6 +22,8 @@ stdenv.mkDerivation rec {
"--enable-avahi"
# Connect to the daemon at `/var/run/avahi-daemon/socket'.
"--localstatedir=/var"
# Read configuration at `/etc/mdns.allow`, not `$out/etc/mdns.allow`.
"--sysconfdir=/etc"
];
meta = {
@ -33,7 +35,7 @@ stdenv.mkDerivation rec {
resolution by common Unix/Linux programs in the ad-hoc mDNS
domain `.local'.
'';
homepage = "http://0pointer.de/lennart/projects/nss-mdns/";
homepage = "https://github.com/avahi/nss-mdns/";
license = lib.licenses.lgpl2Plus;
# Supports both the GNU and FreeBSD NSS.
platforms = lib.platforms.gnu ++ lib.platforms.linux ++ lib.platforms.freebsd;