diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-27 01:15:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 01:15:02 +0100 |
commit | 8b553055c113191d3bc3973be7dcaccf26231129 (patch) | |
tree | 11993f05e3799c7697cb14566bb53cb80a697d95 /pkgs | |
parent | 71a9046715ee6035bb292be56ce7ad17fca7b00b (diff) | |
parent | e9b042a22130eb4b3d1042854922cbdfbe6f1e4b (diff) |
Merge pull request #110891 from fabaff/httpdump
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/security/httpdump/default.nix | 29 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/security/httpdump/default.nix b/pkgs/tools/security/httpdump/default.nix new file mode 100644 index 000000000000..c2e5a62969be --- /dev/null +++ b/pkgs/tools/security/httpdump/default.nix @@ -0,0 +1,29 @@ +{ buildGoModule +, fetchFromGitHub +, lib +, libpcap +}: + +buildGoModule rec { + pname = "httpdump"; + version = "20210126-${lib.strings.substring 0 7 rev}"; + rev = "d2e0deadca5f9ec2544cb252da3c450966d1860e"; + + src = fetchFromGitHub { + owner = "hsiafan"; + repo = pname; + inherit rev; + sha256 = "0yh8kxy1k23lln09b614limwk9y59r7cn5qhbnzc06ga4mxfczv2"; + }; + + vendorSha256 = "0lb1p63lzn1ngj54bar9add7w0azvgcq3azhv9c5glk3ykv9c3iy"; + + propagatedBuildInputs = [ libpcap ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7e4796063ff7..4fd88228462c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5086,6 +5086,8 @@ in http-getter = callPackage ../applications/networking/flent/http-getter.nix { }; + httpdump = callPackage ../tools/security/httpdump { }; + httpie = callPackage ../tools/networking/httpie { }; httping = callPackage ../tools/networking/httping {}; |