bzildBazelPackage: fix fetch with no markers
Previously the installPhase of the fixed ouput derivation would fail for a package that has no markers, since `sed` would complain about having no input files. If we use `find` instead of bash globs, that problem goes away.
This commit is contained in:
parent
cc588bd420
commit
255686e8fc
1 changed files with 4 additions and 2 deletions
|
@ -51,8 +51,10 @@ in stdenv.mkDerivation (fBuildAttrs // {
|
|||
rm -rf $bazelOut/external/{local_*,\@local_*}
|
||||
|
||||
# Patching markers to make them deterministic
|
||||
sed -i 's, -\?[0-9][0-9]*$, 1,' $bazelOut/external/\@*.marker
|
||||
sed -i '/^ENV:TMP.*/d' $bazelOut/external/\@*.marker
|
||||
find $bazelOut/external -name '@*\.marker' -exec sed -i \
|
||||
-e 's, -\?[0-9][0-9]*$, 1,' \
|
||||
-e '/^ENV:TMP.*/d' \
|
||||
'{}' \;
|
||||
|
||||
# Remove all vcs files
|
||||
rm -rf $(find $bazelOut/external -type d -name .git)
|
||||
|
|
Loading…
Reference in a new issue