python312Packages.icontract: relax deps (#380554)
[NixPkgs.git] / pkgs / by-name / dh / dhcpdump / package.nix
blobe1616f567f6834317aaf66e3ec61e4d9f3ae7a84
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   perl,
6   installShellFiles,
7   libpcap,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "dhcpdump";
12   version = "1.9";
14   src = fetchFromGitHub {
15     owner = "bbonev";
16     repo = pname;
17     tag = "v${version}";
18     hash = "sha256-ck6DLsLQ00unNqPLBKkxaJLDCaPFjTFJcQjTbKSq0U8=";
19   };
21   strictDeps = true;
23   nativeBuildInputs = [
24     perl # pod2man
25     installShellFiles
26   ];
28   buildInputs = [
29     libpcap
30   ];
32   installPhase = ''
33     runHook preBuild
35     install -Dm555 dhcpdump "$out/bin/dhcpdump"
36     installManPage dhcpdump.8
38     runHook postBuild
39   '';
41   meta = with lib; {
42     description = "Tool for visualization of DHCP packets as recorded and output by tcpdump to analyze DHCP server responses";
43     homepage = "https://github.com/bbonev/dhcpdump";
44     changelog = "https://github.com/bbonev/dhcpdump/releases/tag/v${version}";
45     platforms = platforms.linux;
46     maintainers = with maintainers; [ nickcao ];
47     license = licenses.bsd2;
48     mainProgram = "dhcpdump";
49   };