about summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/gem/nix-bundle-install.rb
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ruby-modules/gem/nix-bundle-install.rb')
-rw-r--r--pkgs/development/ruby-modules/gem/nix-bundle-install.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/ruby-modules/gem/nix-bundle-install.rb b/pkgs/development/ruby-modules/gem/nix-bundle-install.rb
index 0d501bd9add73..b0be71102c38e 100644
--- a/pkgs/development/ruby-modules/gem/nix-bundle-install.rb
+++ b/pkgs/development/ruby-modules/gem/nix-bundle-install.rb
@@ -118,9 +118,7 @@ else
   source = Bundler::Source::Path.new(options)
 end
 spec = source.specs.search_all(name).first
-Bundler.rubygems.with_build_args build_flags do
-  source.install(spec)
-end
+source.install(spec, :build_args => build_flags)
 
 msg = spec.post_install_message
 if msg