mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
745 B
Nix
32 lines
745 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";
|
|
mainProgram = "httpdump";
|
|
homepage = "https://github.com/hsiafan/httpdump";
|
|
license = with licenses; [ bsd2 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|