about summary refs log tree commit diff
path: root/pkgs/applications/blockchains/ethabi
diff options
context:
space:
mode:
authorStéphan Kochen <git@stephank.nl>2021-05-15 12:20:20 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-15 12:37:00 -0700
commit2594e822160ce5f2ae0295a06a89ce1d090875c5 (patch)
tree7653271d5582e6ec5f321297318538a706cd7c9f /pkgs/applications/blockchains/ethabi
parente957b3c5b82091898add49fd886f4c6e41538410 (diff)
ethabi: fix darwin build
Diffstat (limited to 'pkgs/applications/blockchains/ethabi')
-rw-r--r--pkgs/applications/blockchains/ethabi/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/blockchains/ethabi/default.nix b/pkgs/applications/blockchains/ethabi/default.nix
index 14f83539d7045..e2598ba22db14 100644
--- a/pkgs/applications/blockchains/ethabi/default.nix
+++ b/pkgs/applications/blockchains/ethabi/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchFromGitHub, rustPlatform }:
+{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv }:
 
 rustPlatform.buildRustPackage rec {
   pname = "ethabi";
@@ -15,6 +15,8 @@ rustPlatform.buildRustPackage rec {
 
   cargoPatches = [ ./add-Cargo-lock.patch ];
 
+  buildInputs = lib.optional stdenv.isDarwin libiconv;
+
   meta = with lib; {
     description = "Ethereum function call encoding (ABI) utility";
     homepage = "https://github.com/rust-ethereum/ethabi";