diff options
author | Charles Strahan <charles.c.strahan@gmail.com> | 2015-01-24 17:59:01 -0500 |
---|---|---|
committer | Charles Strahan <charles.c.strahan@gmail.com> | 2015-01-25 16:22:30 -0500 |
commit | 989a894fc8943271f70d208b584394f54d157eaf (patch) | |
tree | f48bb3cc8efa7d73499c7799cefe8a5a9d6e282b /pkgs/development/interpreters/ruby/bundler-env/default-gem-config.nix | |
parent | 1057f2e8ad64a0a154dfa547aa30a75d0c1a0240 (diff) | |
download | nixpkgs-989a894fc8943271f70d208b584394f54d157eaf.tar nixpkgs-989a894fc8943271f70d208b584394f54d157eaf.tar.gz nixpkgs-989a894fc8943271f70d208b584394f54d157eaf.tar.bz2 nixpkgs-989a894fc8943271f70d208b584394f54d157eaf.tar.lz nixpkgs-989a894fc8943271f70d208b584394f54d157eaf.tar.xz nixpkgs-989a894fc8943271f70d208b584394f54d157eaf.tar.zst nixpkgs-989a894fc8943271f70d208b584394f54d157eaf.zip |
ruby: patch path in tzdata gem
Diffstat (limited to 'pkgs/development/interpreters/ruby/bundler-env/default-gem-config.nix')
-rw-r--r-- | pkgs/development/interpreters/ruby/bundler-env/default-gem-config.nix | 9 |
1 files changed, 8 insertions, 1 deletions
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 0b9ac65f2b7..d982a071a28 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 ]; |