ruby: more consistent baseRuby reference removal

This commit is contained in:
arcnmx 2021-12-22 19:25:41 -08:00
parent 09e3924934
commit 4ac0f8e045

View file

@ -206,7 +206,9 @@ let
sed -i '/^ CONFIG\["\(BASERUBY\|SHELL\|GREP\|EGREP\|MKDIR_P\|MAKEDIRS\|INSTALL\)"\]/d' $rbConfig
'' + opString useBaseRuby ''
# Prevent the baseruby from being included in the closure.
sed -i "s|'--with-baseruby=${baseRuby}/bin/ruby'||" $rbConfig
${removeReferencesTo}/bin/remove-references-to \
-t ${baseRuby} \
$rbConfig $out/lib/libruby*
'';
disallowedRequisites = op (!jitSupport) stdenv.cc.cc