about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/httpdump/default.nix
blob: 2a8e754977824c5ac2ad12d64a65144f2942c904 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ buildGoModule
, fetchFromGitHub
, lib
, libpcap
}:

buildGoModule rec {
  pname = "httpdump";
  version = "unstable-2023-05-07";

  src = fetchFromGitHub {
    owner = "hsiafan";
    repo = pname;
    rev = "e971e00e0136d5c770c4fdddb1c2095327d419d8";
    hash = "sha256-3BzvIaZKBr/HHplJe5hM7u8kigmMHxCvkiVXFZopUCQ=";
  };

  vendorHash = "sha256-NKCAzx1+BkqZGeAORl7gCA7f9PSsyKxP2eggZyBB2l8=";

  propagatedBuildInputs = [ libpcap ];

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "Parse and display HTTP traffic from network device or pcap file";
    mainProgram = "httpdump";
    homepage = "https://github.com/hsiafan/httpdump";
    license = with licenses; [ bsd2 ];
    maintainers = with maintainers; [ fab ];
  };
}