mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
ruby: patch path in tzdata gem
This commit is contained in:
parent
1057f2e8ad
commit
989a894fc8
@ -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 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user