buildBazelPackage: fix preConfigure without dependencies

This commit is contained in:
Timo Kaufmann 2019-06-26 15:23:50 +02:00
parent 255686e8fc
commit 34387bcf5b

View File

@ -88,8 +88,8 @@ in stdenv.mkDerivation (fBuildAttrs // {
'';
preConfigure = ''
mkdir -p $bazelOut/external
cp -r $deps/* $bazelOut/external
mkdir -p "$bazelOut"
cp -r $deps $bazelOut/external
chmod -R +w $bazelOut
find $bazelOut -type l | while read symlink; do
ln -sf $(readlink "$symlink" | sed "s,NIX_BUILD_TOP,$NIX_BUILD_TOP,") "$symlink"