Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby-modules: check tzinfo version #24682

Closed
wants to merge 1 commit into from
Closed

Conversation

mguentner
Copy link
Contributor

Motivation for this change

馃拵 馃拵 馃拵

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

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

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 NixOS#24080
@mention-bot
Copy link

@mguentner, thanks for your PR! By analyzing the history of the files in this pull request, we identified @cstrahan, @manveru and @aflatter to be potential reviewers.

@manveru
Copy link
Contributor

manveru commented Apr 6, 2017

Looks good to me!

@@ -211,13 +211,13 @@ in
buildInputs = [ curl ];
};

tzinfo = attrs: {
tzinfo = attrs: if lib.versionAtLeast attrs.version "1.0" then {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use stdenv.lib.optionalAttrs instead of the if statement.

Mic92 pushed a commit that referenced this pull request Apr 11, 2017
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)
@Mic92 Mic92 closed this in d84029f Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make gem config overridable by version
4 participants