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:
Alexander Khodyrev 2023-07-16 21:45:26 +03:00
parent b49c4f87f9
commit 8d0dce91bc

View file

@ -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
'';