Merge pull request #89527 from chuwy/rq-darwin

rq: fix build on darwin
This commit is contained in:
Mario Rodas 2020-06-05 09:11:10 -05:00 committed by GitHub
commit 7f8f72243e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, rustPlatform, libiconv, llvmPackages, v8 }:
{ stdenv, lib, fetchFromGitHub, rustPlatform, libiconv, llvmPackages, v8 }:
rustPlatform.buildRustPackage rec {
pname = "rq";
@ -13,7 +13,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0c5vwy3c5ji602dj64z6jqvcpi2xff03zvjbnwihb3ydqwnb3v67";
buildInputs = [ llvmPackages.clang-unwrapped v8 ];
buildInputs = [ llvmPackages.clang-unwrapped v8 ]
++ lib.optionals stdenv.isDarwin [ libiconv ];
configurePhase = ''
export LIBCLANG_PATH="${llvmPackages.clang-unwrapped}/lib"