bazel: add patch suggested by upstream

This commit is contained in:
Rob Vermaas 2015-03-26 06:30:21 +00:00
parent 4afecb84e3
commit 7721ff4ccb

View File

@ -13,6 +13,9 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig protobuf zlib zip jdk libarchive unzip makeWrapper ];
installPhase = ''
# apply patch suggested by bazel people, remove when added upstream
sed -i 's/open(path.c_str(), O_CREAT | O_WRONLY, archive_entry_perm(entry))/open(path.c_str(), O_CREAT | O_WRONLY, 0755)/' ./src/main/cpp/blaze.cc
PROTOC=protoc bash compile.sh
mkdir -p $out/bin $out/share
cp -R output $out/share/bazel