Skip to content

Commit

Permalink
bazel: fail fast on missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Profpatsch committed Jul 10, 2018
1 parent 8d5f06c commit 72f786c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/tools/build-managers/bazel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ stdenv.mkDerivation rec {
--replace /bin/bash ${customBash}/bin/bash \
--replace /usr/bin/env ${coreutils}/bin/env
done
# Tell the bootstrapped bazel to not use network (fail-fast)
sed -e '/bazel_build/a\ --fetch=no \\' \
-i ./compile.sh
# Fixup scripts that generate scripts. Not fixed up by patchShebangs below.
substituteInPlace scripts/bootstrap/compile.sh \
--replace /bin/sh ${customBash}/bin/bash
Expand Down

0 comments on commit 72f786c

Please sign in to comment.