bazel_0_4: try to fix on Darwin

First round of fixes -- let's see how Hydra reacts.
This commit is contained in:
Nikolay Amiantov 2017-10-21 17:11:02 +03:00
parent ab4f4f8baa
commit a86fe917b9

View File

@ -38,6 +38,13 @@ stdenv.mkDerivation rec {
for f in $(grep -l -r '/usr/bin/env'); do
substituteInPlace "$f" --replace '/usr/bin/env' '${coreutils}/bin/env'
done
'' + lib.optionalString stdenv.isDarwin ''
sed -i 's,/usr/bin/xcrun clang,clang,g' \
scripts/bootstrap/compile.sh \
src/tools/xcode/realpath/BUILD \
src/tools/xcode/stdredirect/BUILD \
src/tools/xcode/xcrunwrapper/xcrunwrapper.sh
sed -i 's/"xcrun", "clang"/"clang"/g' tools/osx/xcode_configure.bzl
'';
buildInputs = [