Merge pull request #7404 from cstrahan/bundlerenv-fixes
Bundlerenv fixes
This commit is contained in:
commit
80f4b81615
|
@ -31,7 +31,7 @@ in
|
|||
|
||||
{
|
||||
charlock_holmes = attrs: {
|
||||
buildInputs = [ which icu ];
|
||||
buildInputs = [ which icu zlib ];
|
||||
};
|
||||
|
||||
ffi = attrs: {
|
||||
|
|
|
@ -74,16 +74,24 @@ Bundler::Fetcher.class_eval do
|
|||
|
||||
spec_list = gem_names.map do |name|
|
||||
spec = Bundler.nix_gemspecs.detect {|spec| spec.name == name }
|
||||
dependencies = spec.dependencies.
|
||||
select {|dep| dep.type != :development}.
|
||||
map do |dep|
|
||||
deps_list << dep.name
|
||||
dep
|
||||
end
|
||||
if spec.nil?
|
||||
msg = "WARNING: Could not find gemspec for '#{name}'"
|
||||
Bundler.ui.warn msg
|
||||
nil
|
||||
else
|
||||
dependencies = spec.dependencies.
|
||||
select {|dep| dep.type != :development}.
|
||||
map do |dep|
|
||||
deps_list << dep.name
|
||||
dep
|
||||
end
|
||||
|
||||
[spec.name, spec.version, spec.platform, dependencies]
|
||||
[spec.name, spec.version, spec.platform, dependencies]
|
||||
end
|
||||
end
|
||||
|
||||
spec_list.compact!
|
||||
|
||||
[spec_list, deps_list.uniq]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue