tezos-rust-libs: fix build on darwin

This commit is contained in:
Weijia Wang 2023-05-05 14:31:50 +03:00
parent 4790140b28
commit 0d130c22b6

View File

@ -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