From 967c6d8640974808cd618673de9ce3de366d0e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Tue, 11 May 2021 20:40:33 +0200 Subject: [PATCH] anevicon: fix darwin build --- pkgs/tools/networking/anevicon/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/anevicon/default.nix b/pkgs/tools/networking/anevicon/default.nix index 95a4bbe9fb8..cff22fa71e6 100644 --- a/pkgs/tools/networking/anevicon/default.nix +++ b/pkgs/tools/networking/anevicon/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , fetchpatch , rustPlatform +, libiconv , Security }: @@ -19,7 +20,7 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1g15v13ysx09fy0b8qddw5fwql2pvwzc2g2h1ndhzpxvfy7fzpr1"; - buildInputs = lib.optionals stdenv.isDarwin [ Security ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ]; cargoPatches = [ # Add Cargo.lock file, https://github.com/rozgo/anevicon/pull/1 @@ -30,6 +31,9 @@ rustPlatform.buildRustPackage rec { }) ]; + # Tries to send large UDP packets that Darwin rejects. + doCheck = !stdenv.isDarwin; + meta = with lib; { description = "UDP-based load generator"; homepage = "https://github.com/rozgo/anevicon";