Files
nixpkgs/pkgs/by-name/dn/dnstap/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.2 KiB
Nix

{
buildGoModule,
fetchFromGitHub,
installShellFiles,
lib,
stdenv,
}:
buildGoModule rec {
pname = "dnstap";
version = "0.4.0";
src = fetchFromGitHub {
owner = "dnstap";
repo = "golang-dnstap";
tag = "v${version}";
hash = "sha256-GmwHJ6AQ4HcPEFNeodKqJe/mYE1Fa95hRiQWoka/nv4=";
};
vendorHash = "sha256-xDui88YgLqIETIR34ZdqT6Iz12v+Rdf6BssAIXgaMLU=";
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installManPage dnstap/dnstap.8
'';
meta = {
description = "Structured DNS server events decoding utility";
longDescription = ''
dnstap implements an encoding format for DNS server events. It uses a
lightweight framing on top of event payloads encoded using Protocol
Buffers and is transport neutral.
dnstap can represent internal state inside a DNS server that is difficult
to obtain using techniques based on traditional packet capture or
unstructured textual format logging.
'';
homepage = "https://dnstap.info";
changelog = "https://github.com/dnstap/golang-dnstap/releases/tag/${src.rev}";
license = lib.licenses.asl20;
broken = stdenv.hostPlatform.isDarwin;
maintainers = [ lib.maintainers.azahi ];
mainProgram = "dnstap";
};
}