ruby: replace bundled RubyGems with our RubyGems

This should prevent problems caused by trying to install our own
RubyGems over the top of the one that comes with Ruby.

+3 -7
+3 -7
pkgs/development/interpreters/ruby/default.nix
··· 93 93 }).${ver.majMinTiny}; 94 94 95 95 postUnpack = opString rubygemsSupport '' 96 - cp -r ${rubygems} $sourceRoot/rubygems 96 + rm -rf $sourceRoot/{lib,test}/rubygems* 97 + cp -r ${rubygems}/lib/rubygems* $sourceRoot/lib 98 + cp -r ${rubygems}/test/rubygems $sourceRoot/test 97 99 ''; 98 100 99 101 postPatch = if atLeast25 then '' ··· 158 160 EOF 159 161 160 162 rbConfig=$(find $out/lib/ruby -name rbconfig.rb) 161 - '' + opString rubygemsSupport '' 162 - # Update rubygems 163 - pushd rubygems 164 - chmod +w bundler/bundler.gemspec 165 - ${buildRuby} setup.rb 166 - popd 167 163 '' + opString docSupport '' 168 164 # Prevent the docs from being included in the closure 169 165 sed -i "s|\$(DESTDIR)$devdoc|\$(datarootdir)/\$(RI_BASE_NAME)|" $rbConfig