Merge pull request #200422 from amarshall/ruby-r13y

ruby: Make reproducible
This commit is contained in:
Mario Rodas
2022-11-20 13:02:13 -05:00
committed by GitHub
@@ -188,10 +188,11 @@ let
''
}
# Remove unnecessary external intermediate files created by gems
extMakefiles=$(find $out/lib/ruby/gems -name Makefile)
extMakefiles=$(find $out/${passthru.gemPath} -name Makefile)
for makefile in $extMakefiles; do
make -C "$(dirname "$makefile")" distclean
done
find "$out/${passthru.gemPath}" -name gem_make.out -delete
# Bundler tries to create this directory
mkdir -p $out/nix-support
cat > $out/nix-support/setup-hook <<EOF