From 7d4c1ae7f11b72ced45fb686fa21a9c9ae1e0588 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Thu, 12 Dec 2019 16:46:04 +0100 Subject: [PATCH] rubyMinimal: ruby with all options disabled by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar to `gitMinimal` or `pythonMinimal`, this is useful for scripts which don’t use anything but the standard library and want a small footprint. --- pkgs/development/interpreters/ruby/default.nix | 10 +++++----- pkgs/top-level/all-packages.nix | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index ab25b4e189a..98e26a223b2 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -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 <