uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
25
pkgs/development/interpreters/ruby/rbconfig.rb
Normal file
25
pkgs/development/interpreters/ruby/rbconfig.rb
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# This is a shim around whatever real rbconfig.rb is in the LOAD_PATH,
|
||||
# so that RbConfig::CONFIG["ridir"] can be overridden to point to the
|
||||
# custom location of the ri docs, without the main derivation having
|
||||
# those docs in its closure.
|
||||
|
||||
MY_PATH = File.realpath(__FILE__)
|
||||
|
||||
candidates = $LOAD_PATH.map { |dir| File.join(dir, "rbconfig.rb") }
|
||||
|
||||
# First, drop everything _before_ this file in the LOAD_PATH, just on
|
||||
# the off-chance somebody is composing shims like this for some reason.
|
||||
candidates.drop_while { |c| !File.exist?(c) || File.realpath(c) != MY_PATH }
|
||||
|
||||
# Now, the wrapped rbconfig.rb is the next rbconfig.rb in the LOAD_PATH
|
||||
# that isn't this same file. (Yes, duplicate LOAD_PATH entries are a
|
||||
# thing we have to deal with.)
|
||||
next_rbconfig = candidates.find { |c|
|
||||
File.exist?(c) && File.realpath(c) != MY_PATH
|
||||
}
|
||||
|
||||
# Load the wrapped rbconfig.rb
|
||||
require next_rbconfig
|
||||
|
||||
# Now we have RbConfig, and can modify it for our own ends.
|
||||
RbConfig::CONFIG["ridir"] = File.expand_path("../../../share/ri", __dir__)
|
||||
Loading…
Add table
Add a link
Reference in a new issue