rubyMinimal: ruby with all options disabled by default
Similar to `gitMinimal` or `pythonMinimal`, this is useful for scripts which don’t use anything but the standard library and want a small footprint.
This commit is contained in:
@@ -149,14 +149,14 @@ let
|
||||
postInstall = ''
|
||||
# Remove unnecessary groff reference from runtime closure, since it's big
|
||||
sed -i '/NROFF/d' $out/lib/ruby/*/*/rbconfig.rb
|
||||
|
||||
${lib.optionalString removeReferenceToCC ''
|
||||
${
|
||||
lib.optionalString removeReferenceToCC ''
|
||||
# Get rid of the CC runtime dependency
|
||||
${removeReferencesTo}/bin/remove-references-to \
|
||||
-t ${stdenv.cc} \
|
||||
$out/lib/libruby.so.*
|
||||
''}
|
||||
|
||||
$out/lib/libruby*
|
||||
''
|
||||
}
|
||||
# Bundler tries to create this directory
|
||||
mkdir -p $out/nix-support
|
||||
cat > $out/nix-support/setup-hook <<EOF
|
||||
|
||||
Reference in New Issue
Block a user