From 2594e822160ce5f2ae0295a06a89ce1d090875c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Sat, 15 May 2021 12:20:20 +0200 Subject: [PATCH] ethabi: fix darwin build --- pkgs/applications/blockchains/ethabi/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/blockchains/ethabi/default.nix b/pkgs/applications/blockchains/ethabi/default.nix index 14f83539d70..e2598ba22db 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";