mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
Merge pull request #258408 from SuperSandro2000/nss-mdns
nss-mdns: fix version number format, general cleanup
This commit is contained in:
commit
4f555b0eff
@ -2,27 +2,27 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nss-mdns";
|
pname = "nss-mdns";
|
||||||
version = "v0.15.1";
|
version = "0.15.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lathiat";
|
owner = "lathiat";
|
||||||
repo = pname;
|
repo = "nss-mdns";
|
||||||
rev = version;
|
rev = "v${version}";
|
||||||
hash = "sha256-iRaf9/gu9VkGi1VbGpxvC5q+0M8ivezCz/oAKEg5V1M=";
|
hash = "sha256-iRaf9/gu9VkGi1VbGpxvC5q+0M8ivezCz/oAKEg5V1M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
|
|
||||||
# Note: Although `nss-mdns' works by talking to `avahi-daemon', it
|
# Note: Although `nss-mdns' works by talking to `avahi-daemon', it
|
||||||
# doesn't depend on the Avahi libraries. Instead, it contains
|
# doesn't depend on the Avahi libraries. Instead, it contains
|
||||||
# hand-written D-Bus code to talk to the Avahi daemon.
|
# hand-written D-Bus code to talk to the Avahi daemon.
|
||||||
|
|
||||||
configureFlags =
|
configureFlags = [
|
||||||
[ # Try to use the Avahi daemon before resolving on our own.
|
# Try to use the Avahi daemon before resolving on our own.
|
||||||
"--enable-avahi"
|
"--enable-avahi"
|
||||||
|
# Connect to the daemon at `/var/run/avahi-daemon/socket'.
|
||||||
# Connect to the daemon at `/var/run/avahi-daemon/socket'.
|
"--localstatedir=/var"
|
||||||
"--localstatedir=/var"
|
];
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "The mDNS Name Service Switch (NSS) plug-in";
|
description = "The mDNS Name Service Switch (NSS) plug-in";
|
||||||
@ -33,13 +33,10 @@ stdenv.mkDerivation rec {
|
|||||||
resolution by common Unix/Linux programs in the ad-hoc mDNS
|
resolution by common Unix/Linux programs in the ad-hoc mDNS
|
||||||
domain `.local'.
|
domain `.local'.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
homepage = "http://0pointer.de/lennart/projects/nss-mdns/";
|
homepage = "http://0pointer.de/lennart/projects/nss-mdns/";
|
||||||
license = lib.licenses.lgpl2Plus;
|
license = lib.licenses.lgpl2Plus;
|
||||||
|
|
||||||
# Supports both the GNU and FreeBSD NSS.
|
# Supports both the GNU and FreeBSD NSS.
|
||||||
platforms = lib.platforms.gnu ++ lib.platforms.linux ++ lib.platforms.freebsd;
|
platforms = lib.platforms.gnu ++ lib.platforms.linux ++ lib.platforms.freebsd;
|
||||||
|
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user