ruby-modules: check tzinfo version

tzinfo 0.3.xx does not contain the file

lib/tzinfo/zoneinfo_data_source.rb

it is only included in the 1.x branch.

closes #24080
closes #24682
This commit is contained in:
Maximilian Güntner 2017-04-06 16:14:45 +02:00 committed by Jörg Thalheim
parent c03b91cdcf
commit d84029f296
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -211,7 +211,7 @@ in
buildInputs = [ curl ];
};
tzinfo = attrs: {
tzinfo = attrs: lib.optionalAttrs (lib.versionAtLeast attrs.version "1.0") {
dontBuild = false;
postPatch = ''
substituteInPlace lib/tzinfo/zoneinfo_data_source.rb \