Unverified Commit e2c423b7 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #297755 from toonn/nssmdns-sysconfdir

nssmdns: Fix configuration location
parents a18f21d5 46d7754b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;