Merge pull request #14934 from retrry/cargo-fix
cargo: add libiconv to buildInputs to fix darwin build
This commit is contained in:
commit
e169622bcc
@ -1,5 +1,7 @@
|
|||||||
{ stdenv, cacert, fetchgit, rustPlatform, file, curl, python, pkgconfig, openssl
|
{ stdenv, lib, cacert, fetchgit, rustPlatform, file, curl, python, pkgconfig, openssl
|
||||||
, cmake, zlib, makeWrapper }:
|
, cmake, zlib, makeWrapper
|
||||||
|
# Darwin dependencies
|
||||||
|
, libiconv }:
|
||||||
|
|
||||||
with rustPlatform;
|
with rustPlatform;
|
||||||
|
|
||||||
@ -20,7 +22,8 @@ buildRustPackage rec {
|
|||||||
|
|
||||||
depsSha256 = "1x2m7ww2z8nl5ic2nds85p7ma8x0zp654jg7ay905ia95daiabzg";
|
depsSha256 = "1x2m7ww2z8nl5ic2nds85p7ma8x0zp654jg7ay905ia95daiabzg";
|
||||||
|
|
||||||
buildInputs = [ file curl pkgconfig python openssl cmake zlib makeWrapper ];
|
buildInputs = [ file curl pkgconfig python openssl cmake zlib makeWrapper ]
|
||||||
|
++ lib.optional stdenv.isDarwin libiconv;
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
./configure --enable-optimize --prefix=$out --local-cargo=${cargo}/bin/cargo
|
./configure --enable-optimize --prefix=$out --local-cargo=${cargo}/bin/cargo
|
||||||
|
Loading…
Reference in New Issue
Block a user