rq: fix build on darwin

This commit is contained in:
Anton Parkhomenko 2020-06-05 16:08:28 +07:00
parent ae2bdf2c1b
commit e4445d17dd

View File

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