@@ -3,6 +3,7 @@
33, fetchFromGitHub
44, fetchpatch
55, rustPlatform
6+, libiconv
67, Security
78}:
89
@@ -19,7 +20,7 @@ rustPlatform.buildRustPackage rec {
1920
2021 cargoSha256 = "1g15v13ysx09fy0b8qddw5fwql2pvwzc2g2h1ndhzpxvfy7fzpr1";
2122
22− buildInputs = lib.optionals stdenv.isDarwin [ Security ];
23+ buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
2324
2425 cargoPatches = [
2526 # Add Cargo.lock file, https://github.com/rozgo/anevicon/pull/1
@@ -30,6 +31,9 @@ rustPlatform.buildRustPackage rec {
3031 })
3132 ];
3233
34+ # Tries to send large UDP packets that Darwin rejects.
35+ doCheck = !stdenv.isDarwin;
36+
3337 meta = with lib; {
3438 description = "UDP-based load generator";
3539 homepage = "https://github.com/rozgo/anevicon";