tcl: fix #243831
Add a dependency on tzdata, use tzdata's zoneinfo in clock.tcl. Remove other paths clock.tcl may try to use for zoneinfo to avoid non-store dependency.
This commit is contained in:
parent
b49c4f87f9
commit
8d0dce91bc
|
@ -1,4 +1,5 @@
|
|||
{ lib, stdenv, callPackage, makeSetupHook
|
||||
, tzdata
|
||||
|
||||
# Version specific stuff
|
||||
, release, version, src
|
||||
|
@ -15,6 +16,14 @@ let
|
|||
|
||||
setOutputFlags = false;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace library/clock.tcl \
|
||||
--replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" \
|
||||
--replace "/usr/share/lib/zoneinfo" "" \
|
||||
--replace "/usr/lib/zoneinfo" "" \
|
||||
--replace "/usr/local/etc/zoneinfo" ""
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
cd unix
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue