summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/gem-config/default.nix
diff options
context:
space:
mode:
authorMaximilian Güntner <code@sourcediver.org>2017-04-06 16:14:45 +0200
committerJörg Thalheim <joerg@thalheim.io>2017-04-11 10:44:54 +0200
commitd84029f2960784938de2bf32d03be367762aec04 (patch)
treee00915cdc44ca4568acf4f889920dd0c8590f04c /pkgs/development/ruby-modules/gem-config/default.nix
parentc03b91cdcf7ff247bc2c226ccdcf0b0c99daba31 (diff)
downloadnixpkgs-d84029f2960784938de2bf32d03be367762aec04.tar
nixpkgs-d84029f2960784938de2bf32d03be367762aec04.tar.gz
nixpkgs-d84029f2960784938de2bf32d03be367762aec04.tar.bz2
nixpkgs-d84029f2960784938de2bf32d03be367762aec04.tar.lz
nixpkgs-d84029f2960784938de2bf32d03be367762aec04.tar.xz
nixpkgs-d84029f2960784938de2bf32d03be367762aec04.tar.zst
nixpkgs-d84029f2960784938de2bf32d03be367762aec04.zip
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
Diffstat (limited to 'pkgs/development/ruby-modules/gem-config/default.nix')
-rw-r--r--pkgs/development/ruby-modules/gem-config/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix
index 02fe9f50558..e115b2c679d 100644
--- a/pkgs/development/ruby-modules/gem-config/default.nix
+++ b/pkgs/development/ruby-modules/gem-config/default.nix
@@ -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 \