summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ruby-modules
diff options
context:
space:
mode:
authorMichael Fellinger <michael.fellinger@iohk.io>2020-04-06 15:31:18 +0200
committerMichael Fellinger <michael.fellinger@iohk.io>2020-04-06 15:31:18 +0200
commitb285fa07d521fabc7250cd9529af03879b0a1b93 (patch)
tree64ebd542d1c6418fb5a7ac9f512b315ec17b0180 /pkgs/development/ruby-modules
parentf92600b406982e871dcd28ca0259357f57fa562b (diff)
set GEM_HOME via Gem.paths
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r--pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb b/pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb
index 1dfeaadf6500..2bf9d84caa06 100644
--- a/pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb
+++ b/pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb
@@ -35,7 +35,9 @@ ENV["BUNDLE_GEMFILE"] = #{gemfile.dump}
ENV.delete 'BUNDLE_PATH'
ENV['BUNDLE_FROZEN'] = '1'
-$LOAD_PATH.unshift #{bundler_path.dump} + "/lib"
+Gem.paths = { 'GEM_HOME' => #{bundle_path.dump} }
+
+$LOAD_PATH.unshift #{File.join(bundler_path, "/lib").dump}
require 'bundler'
Bundler.setup(#{groups.map(&:dump).join(', ')})