nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 fetchpatch, 6 libpcap, 7}: 8 9buildGoModule rec { 10 pname = "goreplay"; 11 version = "1.3.3"; 12 13 src = fetchFromGitHub { 14 owner = "buger"; 15 repo = "goreplay"; 16 rev = version; 17 sha256 = "sha256-FiY9e5FgpPu+K8eoO8TsU3xSaSoPPDxYEu0oi/S8Q1w="; 18 }; 19 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 ]; 27 28 vendorHash = "sha256-jDMAtcq3ZowFdky5BdTkVNxq4ltkhklr76nXYJgGALg="; 29 30 ldflags = [ 31 "-s" 32 "-w" 33 ]; 34 35 buildInputs = [ libpcap ]; 36 37 doCheck = false; 38 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 }; 46}