forked from mirrors/nixpkgs
buildRubyGem: remove more bloat files
This commit is contained in:
parent
11970ee1d6
commit
ec8293fbfe
|
@ -205,8 +205,11 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
|
||||||
$gempkg $gemFlags -- $buildFlags
|
$gempkg $gemFlags -- $buildFlags
|
||||||
|
|
||||||
# looks like useless files which break build repeatability and consume space
|
# looks like useless files which break build repeatability and consume space
|
||||||
rm -fv $out/${ruby.gemPath}/doc/*/*/created.rid || true
|
pushd $out/${ruby.gemPath}
|
||||||
rm -fv $out/${ruby.gemPath}/gems/*/ext/*/mkmf.log || true
|
rm -fv doc/*/*/created.rid || true
|
||||||
|
rm -fv {gems/*/ext/*,extensions/*/*/*}/{mkmf.log,gem_make.out} || true
|
||||||
|
rm -fvr cache
|
||||||
|
popd
|
||||||
|
|
||||||
# write out metadata and binstubs
|
# write out metadata and binstubs
|
||||||
spec=$(echo $out/${ruby.gemPath}/specifications/*.gemspec)
|
spec=$(echo $out/${ruby.gemPath}/specifications/*.gemspec)
|
||||||
|
|
Loading…
Reference in a new issue