1{
2 buildGoModule,
3 fetchFromGitHub,
4 lib,
5 libpcap,
6}:
7
8buildGoModule {
9 pname = "httpdump";
10 version = "0-unstable-2023-05-07";
11
12 src = fetchFromGitHub {
13 owner = "hsiafan";
14 repo = "httpdump";
15 rev = "e971e00e0136d5c770c4fdddb1c2095327d419d8";
16 hash = "sha256-3BzvIaZKBr/HHplJe5hM7u8kigmMHxCvkiVXFZopUCQ=";
17 };
18
19 vendorHash = "sha256-NKCAzx1+BkqZGeAORl7gCA7f9PSsyKxP2eggZyBB2l8=";
20
21 propagatedBuildInputs = [ libpcap ];
22
23 ldflags = [
24 "-s"
25 "-w"
26 ];
27
28 meta = with lib; {
29 description = "Parse and display HTTP traffic from network device or pcap file";
30 mainProgram = "httpdump";
31 homepage = "https://github.com/hsiafan/httpdump";
32 license = with licenses; [ bsd2 ];
33 maintainers = with maintainers; [ fab ];
34 };
35}