diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-08 22:23:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 22:23:35 +0100 |
commit | 8e1d38e77d72585de78704faa357dca1df88927e (patch) | |
tree | 0d0714ac2823242a199ab9de0bf9f8535adb17cd /pkgs | |
parent | 745e85e7cf1f55a6b6573ef107fd211a330845e6 (diff) | |
parent | 65294fcfb579287e692eab214613064a1b471d7b (diff) |
Merge pull request #200255 from avdv/goreplay-arm64
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/networking/goreplay/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/networking/goreplay/default.nix b/pkgs/tools/networking/goreplay/default.nix index dab5bee882c12..5d65e110d9c6b 100644 --- a/pkgs/tools/networking/goreplay/default.nix +++ b/pkgs/tools/networking/goreplay/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, libpcap }: +{ lib, buildGoModule, fetchFromGitHub, fetchpatch, libpcap }: buildGoModule rec { pname = "goreplay"; @@ -11,6 +11,14 @@ buildGoModule rec { sha256 = "sha256-FiY9e5FgpPu+K8eoO8TsU3xSaSoPPDxYEu0oi/S8Q1w="; }; + patches = [ + # Fix build on arm64-linux, see https://github.com/buger/goreplay/pull/1140 + (fetchpatch { + url = "https://github.com/buger/goreplay/commit/a01afa1e322ef06f36995abc3fda3297bdaf0140.patch"; + sha256 = "sha256-w3aVe/Fucwd2OuK5Fu2jJTbmMci8ilWaIjYjsWuLRlo="; + }) + ]; + vendorSha256 = "sha256-jDMAtcq3ZowFdky5BdTkVNxq4ltkhklr76nXYJgGALg="; ldflags = [ "-s" "-w" ]; |