Skip to content

Commit

Permalink
bazel: 0.16.1 -> 0.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-canva committed Sep 16, 2018
1 parent 8115654 commit 91a2980
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/development/tools/build-managers/bazel/default.nix
Expand Up @@ -28,7 +28,7 @@ let
in
stdenv.mkDerivation rec {

version = "0.16.1";
version = "0.17.1";

meta = with lib; {
homepage = "https://github.com/bazelbuild/bazel/";
Expand All @@ -42,7 +42,7 @@ stdenv.mkDerivation rec {

src = fetchurl {
url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-dist.zip";
sha256 = "0v5kcz8q9vzf4cpmlx8k2gg0dsr8mj0jmx9a44pwb0kc6na6pih9";
sha256 = "081z40vsxvw6ndiinik4pn09gxmv140k6l9zv93dgjr86qf2ir13";
};

sourceRoot = ".";
Expand Down Expand Up @@ -89,6 +89,9 @@ stdenv.mkDerivation rec {
# and linkers from Xcode instead of from PATH
export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
# Explicitly configure gcov since we don't have it on Darwin, so autodetection fails
export GCOV=${coreutils}/bin/false
# Framework search paths aren't added by bintools hook
# https://github.com/NixOS/nixpkgs/pull/41914
export NIX_LDFLAGS="$NIX_LDFLAGS -F${CoreFoundation}/Library/Frameworks -F${CoreServices}/Library/Frameworks -F${Foundation}/Library/Frameworks"
Expand All @@ -97,6 +100,10 @@ stdenv.mkDerivation rec {
# https://github.com/NixOS/nixpkgs/pull/41589
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -isystem ${libcxx}/include/c++/v1"
# 10.10 apple_sdk Foundation doesn't have type arguments on classes
# Remove this when we update apple_sdk
sed -i -e 's/<.*\*>//g' tools/osx/xcode_locator.m
# don't use system installed Xcode to run clang, use Nix clang instead
sed -i -e "s;/usr/bin/xcrun clang;${clang}/bin/clang $NIX_CFLAGS_COMPILE $NIX_LDFLAGS -framework CoreFoundation;g" \
scripts/bootstrap/compile.sh \
Expand Down

0 comments on commit 91a2980

Please sign in to comment.