about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2015-01-24 16:05:33 -0500
committerCharles Strahan <charles.c.strahan@gmail.com>2015-01-24 17:35:11 -0500
commitc1814073ac7af4b7658a1ec4840378c36d34bd8e (patch)
treeb363c0008907348c443ea60902fac5564e0981b5 /pkgs
parenta83cfbfc7c7d794d914b8f2b9019961cbf1d5785 (diff)
downloadnixlib-c1814073ac7af4b7658a1ec4840378c36d34bd8e.tar
nixlib-c1814073ac7af4b7658a1ec4840378c36d34bd8e.tar.gz
nixlib-c1814073ac7af4b7658a1ec4840378c36d34bd8e.tar.bz2
nixlib-c1814073ac7af4b7658a1ec4840378c36d34bd8e.tar.lz
nixlib-c1814073ac7af4b7658a1ec4840378c36d34bd8e.tar.xz
nixlib-c1814073ac7af4b7658a1ec4840378c36d34bd8e.tar.zst
nixlib-c1814073ac7af4b7658a1ec4840378c36d34bd8e.zip
bundlerEnv: use full path to ruby in wrappers
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/interpreters/ruby/bundler-env/monkey_patches.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/ruby/bundler-env/monkey_patches.rb b/pkgs/development/interpreters/ruby/bundler-env/monkey_patches.rb
index 5877f2e7bfb2..f3849446fe6a 100644
--- a/pkgs/development/interpreters/ruby/bundler-env/monkey_patches.rb
+++ b/pkgs/development/interpreters/ruby/bundler-env/monkey_patches.rb
@@ -160,7 +160,7 @@ Bundler::Installer.class_eval do
 
       File.open(binstub_path, 'w', 0777 & ~File.umask) do |f|
         f.print <<-TEXT
-#!/usr/bin/env #{RbConfig::CONFIG['ruby_install_name']}
+#!#{RbConfig.ruby}
 
 old_gemfile  = ENV["BUNDLE_GEMFILE"]
 old_gem_home = ENV["GEM_HOME"]
@@ -206,7 +206,7 @@ Gem::Installer.class_eval do
   #   Run the actual executable.
   def app_script_text(bin_file_name)
     return <<-TEXT
-#{shebang bin_file_name}
+#!#{RbConfig.ruby}
 #
 # This file was generated by Nix's RubyGems.
 #