zoxide: 0.9.6 -> 0.9.7 (#380745)
[NixPkgs.git] / pkgs / by-name / go / goreplay / package.nix
blobbea28693a6df531c11cc86ae33393f23b0ea5514
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   fetchpatch,
6   libpcap,
7 }:
9 buildGoModule rec {
10   pname = "goreplay";
11   version = "1.3.3";
13   src = fetchFromGitHub {
14     owner = "buger";
15     repo = "goreplay";
16     rev = version;
17     sha256 = "sha256-FiY9e5FgpPu+K8eoO8TsU3xSaSoPPDxYEu0oi/S8Q1w=";
18   };
20   patches = [
21     # Fix build on arm64-linux, see https://github.com/buger/goreplay/pull/1140
22     (fetchpatch {
23       url = "https://github.com/buger/goreplay/commit/a01afa1e322ef06f36995abc3fda3297bdaf0140.patch";
24       sha256 = "sha256-w3aVe/Fucwd2OuK5Fu2jJTbmMci8ilWaIjYjsWuLRlo=";
25     })
26   ];
28   vendorHash = "sha256-jDMAtcq3ZowFdky5BdTkVNxq4ltkhklr76nXYJgGALg=";
30   ldflags = [
31     "-s"
32     "-w"
33   ];
35   buildInputs = [ libpcap ];
37   doCheck = false;
39   meta = {
40     homepage = "https://github.com/buger/goreplay";
41     license = lib.licenses.lgpl3Only;
42     description = "Open-source tool for capturing and replaying live HTTP traffic";
43     maintainers = with lib.maintainers; [ lovek323 ];
44     mainProgram = "goreplay";
45   };