depot/third_party/nixpkgs/pkgs/tools/security/httpdump/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

30 lines
715 B
Nix

{ 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";
homepage = "https://github.com/hsiafan/httpdump";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
};
}