ruby: reproducible

Generated Makefile's were nested deeper than the existing rm would be
able to remove.
This commit is contained in:
Thomas Bereknyei 2021-04-05 00:21:11 -04:00 committed by tomberek
parent 87c1a24c47
commit a10183d3ec

View file

@ -217,8 +217,8 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
# looks like useless files which break build repeatability and consume space # looks like useless files which break build repeatability and consume space
pushd $out/${ruby.gemPath} pushd $out/${ruby.gemPath}
rm -fv doc/*/*/created.rid || true find doc/ -iname created.rid -delete -print
rm -fv {gems/*/ext/*,extensions/*/*/*}/{Makefile,mkmf.log,gem_make.out} || true find gems/*/ext/ extensions/ \( -iname Makefile -o -iname mkmf.log -o -iname gem_make.out \) -delete -print
${if keepGemCache then "" else "rm -fvr cache"} ${if keepGemCache then "" else "rm -fvr cache"}
popd popd