diff options
author | Nikolay Amiantov <ab@fmap.me> | 2017-10-21 17:11:02 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2017-10-21 17:36:54 +0300 |
commit | a86fe917b947acf18cf8c630c55f877389fa6fad (patch) | |
tree | afdf79673cb215d82f40ce05b88fb8e9b89cb43c | |
parent | ab4f4f8baa91e406d18263b7b97eae45e8738276 (diff) | |
download | nixlib-a86fe917b947acf18cf8c630c55f877389fa6fad.tar nixlib-a86fe917b947acf18cf8c630c55f877389fa6fad.tar.gz nixlib-a86fe917b947acf18cf8c630c55f877389fa6fad.tar.bz2 nixlib-a86fe917b947acf18cf8c630c55f877389fa6fad.tar.lz nixlib-a86fe917b947acf18cf8c630c55f877389fa6fad.tar.xz nixlib-a86fe917b947acf18cf8c630c55f877389fa6fad.tar.zst nixlib-a86fe917b947acf18cf8c630c55f877389fa6fad.zip |
bazel_0_4: try to fix on Darwin
First round of fixes -- let's see how Hydra reacts.
-rw-r--r-- | pkgs/development/tools/build-managers/bazel/0.4.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/bazel/0.4.nix b/pkgs/development/tools/build-managers/bazel/0.4.nix index 0b25623511a9..870882a84ccc 100644 --- a/pkgs/development/tools/build-managers/bazel/0.4.nix +++ b/pkgs/development/tools/build-managers/bazel/0.4.nix @@ -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 = [ |