3
0
Fork 0
forked from mirrors/nixpkgs

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
, 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 ];