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