mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
bazel: use per-user tmp directory to avoid conflict with other builders
This commit is contained in:
parent
2ea2cce391
commit
2a7aa43c16
2 changed files with 4 additions and 3 deletions
|
@ -65,8 +65,9 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
buildPhase = ''
|
||||
export TMPDIR=/tmp/.bazel-$UID
|
||||
./compile.sh
|
||||
./output/bazel --output_user_root=/tmp/.bazel build //scripts:bash_completion \
|
||||
./output/bazel --output_user_root=$TMPDIR/.bazel build //scripts:bash_completion \
|
||||
--spawn_strategy=standalone \
|
||||
--genrule_strategy=standalone
|
||||
cp bazel-bin/scripts/bazel-complete.bash output/
|
||||
|
|
|
@ -483,9 +483,9 @@ stdenv.mkDerivation rec {
|
|||
# Change this to $(mktemp -d) as soon as we figure out why.
|
||||
|
||||
buildPhase = ''
|
||||
export TMPDIR=/tmp
|
||||
export TMPDIR=/tmp/.bazel-$UID
|
||||
./compile.sh
|
||||
./output/bazel --output_user_root=/tmp/.bazel build //scripts:bash_completion \
|
||||
./output/bazel --output_user_root=$TMPDIR/.bazel build //scripts:bash_completion \
|
||||
--spawn_strategy=standalone \
|
||||
--genrule_strategy=standalone \
|
||||
--crosstool_top=//nix:nix --host_crosstool_top=//nix:nix
|
||||
|
|
Loading…
Reference in a new issue