exa: fix build on darwin

This commit is contained in:
Vincent Laporte 2018-03-01 17:24:57 +00:00
parent 8d3aa2f2b9
commit 1aae247be1
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -1,4 +1,6 @@
{ stdenv, fetchFromGitHub, rustPlatform, cmake, perl, pkgconfig, zlib }:
{ stdenv, fetchFromGitHub, rustPlatform, cmake, perl, pkgconfig, zlib
, darwin, libiconv
}:
with rustPlatform;
@ -16,7 +18,10 @@ buildRustPackage rec {
};
nativeBuildInputs = [ cmake pkgconfig perl ];
buildInputs = [ zlib ];
buildInputs = [ zlib ]
++ stdenv.lib.optionals stdenv.isDarwin [
libiconv darwin.apple_sdk.frameworks.Security ]
;
# Some tests fail, but Travis ensures a proper build
doCheck = false;