nixpkgs/pkgs/tools/networking/goreplay/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
711 B
Nix
Raw Normal View History

2022-05-15 09:53:02 +00:00
{ lib, buildGoModule, fetchFromGitHub, libpcap }:
2020-08-31 04:22:28 +00:00
2022-05-15 09:53:02 +00:00
buildGoModule rec {
2020-08-31 04:22:28 +00:00
pname = "goreplay";
2022-05-15 09:53:02 +00:00
version = "1.3.3";
2020-08-31 04:22:28 +00:00
src = fetchFromGitHub {
2022-05-15 09:53:02 +00:00
owner = "buger";
repo = "goreplay";
rev = version;
sha256 = "sha256-FiY9e5FgpPu+K8eoO8TsU3xSaSoPPDxYEu0oi/S8Q1w=";
2020-08-31 04:22:28 +00:00
};
2022-05-15 09:53:02 +00:00
vendorSha256 = "sha256-jDMAtcq3ZowFdky5BdTkVNxq4ltkhklr76nXYJgGALg=";
ldflags = [ "-s" "-w" ];
2020-08-31 04:22:28 +00:00
buildInputs = [ libpcap ];
2022-05-15 09:53:02 +00:00
doCheck = false;
2020-08-31 04:22:28 +00:00
meta = {
homepage = "https://github.com/buger/goreplay";
2021-01-15 09:19:50 +00:00
license = lib.licenses.lgpl3Only;
description = "Open-source tool for capturing and replaying live HTTP traffic";
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ lovek323 ];
2020-08-31 04:22:28 +00:00
};
}