From 2682ba63bc0c4dea159ec664d63d375a8d75b12a Mon Sep 17 00:00:00 2001 From: Michael Fellinger Date: Tue, 20 Feb 2018 17:16:16 +0100 Subject: [PATCH] update rubygems version (#35224) --- pkgs/development/interpreters/ruby/default.nix | 7 ++++++- pkgs/development/interpreters/ruby/rubygems-src.nix | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index a53df02f9b9b..4ebc488d9988 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -136,6 +136,12 @@ let ++ op (stdenv.hostPlatform != stdenv.buildPlatform) "--with-baseruby=${buildRuby}"; + preInstall = '' + # Ruby installs gems here itself now. + mkdir -pv "$out/${passthru.gemPath}" + export GEM_HOME="$out/${passthru.gemPath}" + ''; + installFlags = stdenv.lib.optionalString docSupport "install-doc"; # Bundler tries to create this directory postInstall = '' @@ -148,7 +154,6 @@ let sed -i '/NROFF/d' $out/lib/ruby/*/*/rbconfig.rb # Bundler tries to create this directory - mkdir -pv $out/${passthru.gemPath} mkdir -p $out/nix-support cat > $out/nix-support/setup-hook <