defaultGemConfig.tzinfo: fix for >=2.0 (#54881)
This commit is contained in:
parent
c6d32974a0
commit
eaf0b5e595
@ -425,10 +425,16 @@ in
|
|||||||
|
|
||||||
tzinfo = attrs: lib.optionalAttrs (lib.versionAtLeast attrs.version "1.0") {
|
tzinfo = attrs: lib.optionalAttrs (lib.versionAtLeast attrs.version "1.0") {
|
||||||
dontBuild = false;
|
dontBuild = false;
|
||||||
postPatch = ''
|
postPatch =
|
||||||
substituteInPlace lib/tzinfo/zoneinfo_data_source.rb \
|
let
|
||||||
--replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
|
path = if lib.versionAtLeast attrs.version "2.0"
|
||||||
'';
|
then "lib/tzinfo/data_sources/zoneinfo_data_source.rb"
|
||||||
|
else "lib/tzinfo/zoneinfo_data_source.rb";
|
||||||
|
in
|
||||||
|
''
|
||||||
|
substituteInPlace ${path} \
|
||||||
|
--replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
uuid4r = attrs: {
|
uuid4r = attrs: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user