From 0d130c22b6d9923112b7f2af33b791a8decfa204 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 5 May 2023 14:31:50 +0300 Subject: [PATCH] tezos-rust-libs: fix build on darwin --- pkgs/development/libraries/tezos-rust-libs/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/tezos-rust-libs/default.nix b/pkgs/development/libraries/tezos-rust-libs/default.nix index 72163acba83e..e59e5858eaac 100644 --- a/pkgs/development/libraries/tezos-rust-libs/default.nix +++ b/pkgs/development/libraries/tezos-rust-libs/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitLab, stdenv, llvmPackages_12, cargo }: +{ lib, fetchFromGitLab, stdenv, llvmPackages_12, cargo, libiconv }: stdenv.mkDerivation rec { version = "1.5"; @@ -12,6 +12,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ llvmPackages_12.llvm cargo ]; propagatedBuildDeps = [ llvmPackages_12.libllvm ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; buildPhase = '' runHook preBuild