3p/nixpkgs: fix buildBazelPackage
This commit is contained in:
parent
2ce322a6dc
commit
efdf61b4e6
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ pkgs.buildBazelPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
fetchAttrs = {
|
fetchAttrs = {
|
||||||
sha256 = "0id7y01fqc6br28ccayx2z3nz75kf5gvgzh0k8701vp4g6dgd5ym";
|
sha256 = "sha256:195av0bvgqgs7wwzx14yrrww582ijadvjdx82hx4911lp4jlbg8d";
|
||||||
preHook = ''
|
preHook = ''
|
||||||
export COURSIER_CACHE="$(echo ''${NIX_BUILD_TOP}/tmp/coursier | sed -e 's,//,/,g')"
|
export COURSIER_CACHE="$(echo ''${NIX_BUILD_TOP}/tmp/coursier | sed -e 's,//,/,g')"
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -126,7 +126,7 @@ in stdenv.mkDerivation (fBuildAttrs // {
|
||||||
find $bazelOut/external -maxdepth 1 -type l | while read symlink; do
|
find $bazelOut/external -maxdepth 1 -type l | while read symlink; do
|
||||||
name="$(basename "$symlink")"
|
name="$(basename "$symlink")"
|
||||||
rm "$symlink"
|
rm "$symlink"
|
||||||
test -f "$bazelOut/external/@$name.marker" && rm "$bazelOut/external/@$name.marker"
|
test -f "$bazelOut/external/@$name.marker" && rm "$bazelOut/external/@$name.marker" || exit 0
|
||||||
done
|
done
|
||||||
|
|
||||||
# Patching symlinks to remove build directory reference
|
# Patching symlinks to remove build directory reference
|
||||||
|
|
Loading…
Reference in a new issue