@@ -1,4 +1,4 @@
1−{ lib, fetchFromGitHub, rustPlatform }:
1+{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "ethabi";
@@ -15,6 +15,8 @@ rustPlatform.buildRustPackage rec {
1515
1616 cargoPatches = [ ./add-Cargo-lock.patch ];
1717
18+ buildInputs = lib.optional stdenv.isDarwin libiconv;
19+
1820 meta = with lib; {
1921 description = "Ethereum function call encoding (ABI) utility";
2022 homepage = "https://github.com/rust-ethereum/ethabi";