2025-08-16 20:45:15 +00:00

32 lines
846 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mdns-scanner";
version = "0.22.4";
src = fetchFromGitHub {
owner = "CramBL";
repo = "mdns-scanner";
tag = "v${finalAttrs.version}";
hash = "sha256-9jteWQPI0jQFaLcWP9ZzjX0IoyqoSXDt0U8M7x8IHXk=";
};
cargoHash = "sha256-JtreaCQe52pgJGlYy9hc1B+mUU5x5SpKqqC2q48hDXc=";
meta = {
homepage = "https://github.com/CramBL/mdns-scanner";
description = "Scan a network and create a list of IPs and associated hostnames, including mDNS hostnames and other aliases";
changelog = "https://github.com/CramBL/mdns-scanner/releases/tag/${finalAttrs.src.tag}";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ Cameo007 ];
mainProgram = "mdns-scanner";
};
})