Merge pull request #115296 from samueldr/ruby/fix-cross-target
ruby: Use appropriate targetPlatform
This commit is contained in:
commit
7ba904b85e
@ -50,7 +50,7 @@ let
|
|||||||
# - If you run:
|
# - If you run:
|
||||||
# ruby -e "puts RbConfig::CONFIG['configure_args']"
|
# ruby -e "puts RbConfig::CONFIG['configure_args']"
|
||||||
# - In:
|
# - In:
|
||||||
# $out/${passthru.libPath}/${stdenv.targetPlatform.system}/rbconfig.rb
|
# $out/${passthru.libPath}/${stdenv.hostPlatform.system}/rbconfig.rb
|
||||||
# Or (usually):
|
# Or (usually):
|
||||||
# $(nix-build -A ruby)/lib/ruby/2.6.0/x86_64-linux/rbconfig.rb
|
# $(nix-build -A ruby)/lib/ruby/2.6.0/x86_64-linux/rbconfig.rb
|
||||||
# - In $out/lib/libruby.so and/or $out/lib/libruby.dylib
|
# - In $out/lib/libruby.so and/or $out/lib/libruby.dylib
|
||||||
@ -175,7 +175,7 @@ let
|
|||||||
$out/lib/libruby*
|
$out/lib/libruby*
|
||||||
${removeReferencesTo}/bin/remove-references-to \
|
${removeReferencesTo}/bin/remove-references-to \
|
||||||
-t ${stdenv.cc} \
|
-t ${stdenv.cc} \
|
||||||
$out/${passthru.libPath}/${stdenv.targetPlatform.system}/rbconfig.rb
|
$out/${passthru.libPath}/${stdenv.hostPlatform.system}/rbconfig.rb
|
||||||
''
|
''
|
||||||
}
|
}
|
||||||
# Bundler tries to create this directory
|
# Bundler tries to create this directory
|
||||||
@ -187,7 +187,7 @@ let
|
|||||||
addRubyLibPath() {
|
addRubyLibPath() {
|
||||||
addToSearchPath RUBYLIB \$1/lib/ruby/site_ruby
|
addToSearchPath RUBYLIB \$1/lib/ruby/site_ruby
|
||||||
addToSearchPath RUBYLIB \$1/lib/ruby/site_ruby/${ver.libDir}
|
addToSearchPath RUBYLIB \$1/lib/ruby/site_ruby/${ver.libDir}
|
||||||
addToSearchPath RUBYLIB \$1/lib/ruby/site_ruby/${ver.libDir}/${stdenv.targetPlatform.system}
|
addToSearchPath RUBYLIB \$1/lib/ruby/site_ruby/${ver.libDir}/${stdenv.hostPlatform.system}
|
||||||
}
|
}
|
||||||
|
|
||||||
addEnvHooks "$hostOffset" addGemPath
|
addEnvHooks "$hostOffset" addGemPath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user