Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
900 B
Nix
40 lines
900 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
libpcap,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "dnsmonster";
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mosajjal";
|
|
repo = "dnsmonster";
|
|
tag = "v${version}";
|
|
hash = "sha256-sg+88WbjlfcPgWQ9RnmLr6/VWwXEjsctfWt4TGx1oNc=";
|
|
};
|
|
|
|
vendorHash = "sha256-PIiSpxfZmhxWkHUnoDYKppI7/gzGm0RKh7u9HK4zrEU=";
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/mosajjal/dnsmonster/util.releaseVersion=${version}"
|
|
];
|
|
|
|
meta = {
|
|
description = "Passive DNS Capture and Monitoring Toolkit";
|
|
homepage = "https://github.com/mosajjal/dnsmonster";
|
|
changelog = "https://github.com/mosajjal/dnsmonster/releases/tag/${src.tag}";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
mainProgram = "dnsmonster";
|
|
};
|
|
}
|