nixpkgs/pkgs/tools/networking/dhcpdump/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1 KiB
Nix
Raw Permalink Normal View History

{ lib
, stdenv
, fetchFromGitHub
, perl
, installShellFiles
, libpcap
}:
2015-02-05 14:52:14 +01:00
stdenv.mkDerivation rec {
pname = "dhcpdump";
version = "1.9";
2015-02-05 14:52:14 +01:00
src = fetchFromGitHub {
owner = "bbonev";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-ck6DLsLQ00unNqPLBKkxaJLDCaPFjTFJcQjTbKSq0U8=";
2015-02-05 14:52:14 +01:00
};
strictDeps = true;
nativeBuildInputs = [
perl # pod2man
installShellFiles
];
buildInputs = [
libpcap
];
2015-02-05 14:52:14 +01:00
installPhase = ''
runHook preBuild
install -Dm555 dhcpdump "$out/bin/dhcpdump"
installManPage dhcpdump.8
runHook postBuild
2015-02-05 14:52:14 +01:00
'';
meta = with lib; {
2015-02-05 14:52:14 +01:00
description = "A 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}";
2018-09-10 21:20:19 +02:00
platforms = platforms.linux;
2023-06-21 10:44:12 +02:00
maintainers = with maintainers; [ nickcao ];
2018-09-10 21:20:19 +02:00
license = licenses.bsd2;
2024-02-11 03:19:15 +01:00
mainProgram = "dhcpdump";
2015-02-05 14:52:14 +01:00
};
}