@@ -1,5 +1,5 @@
11{ stdenv, lib, runCommand, patchelf, makeWrapper, pkg-config, curl
2−, openssl, gmp, zlib, fetchFromGitHub, rustPlatform }:
2+, openssl, gmp, zlib, fetchFromGitHub, rustPlatform, libiconv }:
33
44let
55 libPath = lib.makeLibraryPath [ gmp ];
@@ -21,7 +21,8 @@ rustPlatform.buildRustPackage rec {
2121 nativeBuildInputs = [ pkg-config makeWrapper ];
2222
2323 OPENSSL_NO_VENDOR = 1;
24− buildInputs = [ curl zlib openssl ];
24+ buildInputs = [ curl zlib openssl ]
25+ ++ lib.optional stdenv.isDarwin libiconv;
2526
2627 cargoBuildFlags = [ "--features no-self-update" ];
2728