mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
1.5 KiB
Nix
45 lines
1.5 KiB
Nix
{ lib, autoreconfHook, pkg-config, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nss-mdns";
|
|
version = "0.15.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "avahi";
|
|
repo = "nss-mdns";
|
|
rev = "v${version}";
|
|
hash = "sha256-iRaf9/gu9VkGi1VbGpxvC5q+0M8ivezCz/oAKEg5V1M=";
|
|
};
|
|
|
|
nativeBuildInputs = [ 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.
|
|
|
|
configureFlags = [
|
|
# Try to use the Avahi daemon before resolving on our own.
|
|
"--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 = {
|
|
description = "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'.
|
|
'';
|
|
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;
|
|
maintainers = [ ];
|
|
};
|
|
}
|