Skip to content

Commit

Permalink
ruby-modules: check tzinfo version
Browse files Browse the repository at this point in the history
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

(cherry picked from commit d84029f)
  • Loading branch information
mguentner authored and Mic92 committed Apr 11, 2017
1 parent f9ada74 commit a563923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/ruby-modules/gem-config/default.nix
Expand Up @@ -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 \
Expand Down

0 comments on commit a563923

Please sign in to comment.