From 989a894fc8943271f70d208b584394f54d157eaf Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Sat, 24 Jan 2015 17:59:01 -0500 Subject: [PATCH] ruby: patch path in tzdata gem --- .../interpreters/ruby/bundler-env/default-gem-config.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/ruby/bundler-env/default-gem-config.nix b/pkgs/development/interpreters/ruby/bundler-env/default-gem-config.nix index 0b9ac65f2b70..d982a071a289 100644 --- a/pkgs/development/interpreters/ruby/bundler-env/default-gem-config.nix +++ b/pkgs/development/interpreters/ruby/bundler-env/default-gem-config.nix @@ -19,7 +19,7 @@ { lib, fetchurl, writeScript, ruby, libxml2, libxslt, python, stdenv, which , libiconv, postgresql, v8, v8_3_16_14, clang, sqlite, zlib, imagemagick, pkgconfig -, ncurses, xapian, gpgme, utillinux, fetchpatch +, ncurses, xapian, gpgme, utillinux, fetchpatch, tzdata }: let @@ -103,6 +103,13 @@ in ]; }; + tzdata = attrs: { + postPatch = '' + substituteInPlace lib/tzinfo/zoneinfo_data_source.rb \ + --replace "/etc/zoneinfo" "${tzdata}/share/zoneinfo" + ''; + }; + xapian-ruby = attrs: { # use the system xapian buildInputs = [ xapian pkgconfig zlib ];