37 lines
761 B
Nix
37 lines
761 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenv,
|
||
|
|
fetchFromGitHub,
|
||
|
|
cmake,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation rec {
|
||
|
|
pname = "mdns";
|
||
|
|
version = "1.4.3";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "mjansson";
|
||
|
|
repo = "mdns";
|
||
|
|
rev = version;
|
||
|
|
hash = "sha256-2uv+Ibnbl6hsdjFqPhcHXbv+nIEIT4+tgtwGndpZCqo=";
|
||
|
|
};
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
cmake
|
||
|
|
];
|
||
|
|
|
||
|
|
cmakeFlags = [
|
||
|
|
# Fix configure with cmake4
|
||
|
|
(lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10")
|
||
|
|
];
|
||
|
|
|
||
|
|
meta = with lib; {
|
||
|
|
description = "Public domain mDNS/DNS-SD library in C";
|
||
|
|
homepage = "https://github.com/mjansson/mdns";
|
||
|
|
changelog = "https://github.com/mjansson/mdns/blob/${src.rev}/CHANGELOG";
|
||
|
|
license = licenses.unlicense;
|
||
|
|
maintainers = with maintainers; [ hexa ];
|
||
|
|
platforms = platforms.all;
|
||
|
|
};
|
||
|
|
}
|