From 6a836ddfa1e388a5724f76e6320c2dbaa2277322 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sun, 15 May 2022 09:53:02 +0000 Subject: [PATCH] goreplay: 1.1.0 -> 1.3.3 --- pkgs/tools/networking/goreplay/default.nix | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/networking/goreplay/default.nix b/pkgs/tools/networking/goreplay/default.nix index 14d0a16366ba..dab5bee882c1 100644 --- a/pkgs/tools/networking/goreplay/default.nix +++ b/pkgs/tools/networking/goreplay/default.nix @@ -1,21 +1,24 @@ -{ lib, buildGoPackage, fetchFromGitHub, libpcap }: +{ lib, buildGoModule, fetchFromGitHub, libpcap }: -buildGoPackage rec { +buildGoModule rec { pname = "goreplay"; - version = "1.1.0"; - rev = "v${version}"; - - goPackagePath = "github.com/buger/goreplay"; + version = "1.3.3"; src = fetchFromGitHub { - inherit rev; - owner = "buger"; - repo = "goreplay"; - sha256 = "07nsrx5hwmk6l8bqp48gqk40i9bxf0g4fbmpqbngx6j5f7lpbk2n"; + owner = "buger"; + repo = "goreplay"; + rev = version; + sha256 = "sha256-FiY9e5FgpPu+K8eoO8TsU3xSaSoPPDxYEu0oi/S8Q1w="; }; + vendorSha256 = "sha256-jDMAtcq3ZowFdky5BdTkVNxq4ltkhklr76nXYJgGALg="; + + ldflags = [ "-s" "-w" ]; + buildInputs = [ libpcap ]; + doCheck = false; + meta = { homepage = "https://github.com/buger/goreplay"; license = lib.licenses.lgpl3Only;