ruby: patch path in tzdata gem

This commit is contained in:
Charles Strahan 2015-01-24 17:59:01 -05:00
parent 1057f2e8ad
commit 989a894fc8

View File

@ -19,7 +19,7 @@
{ lib, fetchurl, writeScript, ruby, libxml2, libxslt, python, stdenv, which { lib, fetchurl, writeScript, ruby, libxml2, libxslt, python, stdenv, which
, libiconv, postgresql, v8, v8_3_16_14, clang, sqlite, zlib, imagemagick, pkgconfig , libiconv, postgresql, v8, v8_3_16_14, clang, sqlite, zlib, imagemagick, pkgconfig
, ncurses, xapian, gpgme, utillinux, fetchpatch , ncurses, xapian, gpgme, utillinux, fetchpatch, tzdata
}: }:
let 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: { xapian-ruby = attrs: {
# use the system xapian # use the system xapian
buildInputs = [ xapian pkgconfig zlib ]; buildInputs = [ xapian pkgconfig zlib ];