gnu: perl-datetime-timezone: Fix missing timezone data.
I noticed this when using Sqitch, on systems without /usr/share/zoneinfo, actions like deploy fail. * gnu/packages/perl.scm (perl-datetime-timezone)[arguments]: Add 'patch-tzdata phase to replace /usr/share/zoneinfo with a reference to the tzdata package. [inputs]: Add the tzdata package.
This commit is contained in:
parent
f32164abd3
commit
35259437a7
|
@ -2541,9 +2541,22 @@ the DateTime.pm class.")
|
||||||
(base32
|
(base32
|
||||||
"0kz5kz47awf2bhb85xx5rbajkr093ipm2d2vkhqs8lqq0f305r3a"))))
|
"0kz5kz47awf2bhb85xx5rbajkr093ipm2d2vkhqs8lqq0f305r3a"))))
|
||||||
(build-system perl-build-system)
|
(build-system perl-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-tzdata
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "lib/DateTime/TimeZone/Local/Unix.pm"
|
||||||
|
(("our \\$ZoneinfoDir = '\\/usr\\/share\\/zoneinfo';")
|
||||||
|
(string-append "our $ZoneinfoDir = '"
|
||||||
|
(assoc-ref inputs "tzdata") "/share/zoneinfo"
|
||||||
|
"';")))
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("perl-test-fatal" ,perl-test-fatal)
|
`(("perl-test-fatal" ,perl-test-fatal)
|
||||||
("perl-test-requires" ,perl-test-requires)))
|
("perl-test-requires" ,perl-test-requires)))
|
||||||
|
(inputs
|
||||||
|
`(("tzdata" ,tzdata)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("perl-class-singleton" ,perl-class-singleton)
|
`(("perl-class-singleton" ,perl-class-singleton)
|
||||||
("perl-list-allutils" ,perl-list-allutils)
|
("perl-list-allutils" ,perl-list-allutils)
|
||||||
|
|
Loading…
Reference in New Issue