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
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
perl,
|
|
installShellFiles,
|
|
libpcap,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dhcpdump";
|
|
version = "1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bbonev";
|
|
repo = "dhcpdump";
|
|
tag = "v${version}";
|
|
hash = "sha256-ck6DLsLQ00unNqPLBKkxaJLDCaPFjTFJcQjTbKSq0U8=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
perl # pod2man
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
libpcap
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm555 dhcpdump "$out/bin/dhcpdump"
|
|
installManPage dhcpdump.8
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tool for visualization of DHCP packets as recorded and output by tcpdump to analyze DHCP server responses";
|
|
homepage = "https://github.com/bbonev/dhcpdump";
|
|
changelog = "https://github.com/bbonev/dhcpdump/releases/tag/v${version}";
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
license = lib.licenses.bsd2;
|
|
mainProgram = "dhcpdump";
|
|
};
|
|
}
|