1
Fork 0
hare-nix/pkgs/001-tzdata.patch

18 lines
772 B
Diff
Raw Normal View History

2024-05-16 20:47:23 +00:00
diff --git a/time/chrono/+darwin.ha b/time/chrono/+darwin.ha
--- a/time/chrono/+darwin.ha
+++ b/time/chrono/+darwin.ha
@@ -2,11 +2,11 @@
// (c) Hare authors <https://harelang.org>
def LOCALTIME_PATH: str = "/etc/localtime";
-def TZDB_PATH: str = "/usr/share/zoneinfo/";
+def TZDB_PATH: str = "@tzdata@/share/zoneinfo/";
// The filepath of the system's "leap-seconds.list" file, which contains UTC/TAI
// leap second data.
// export def UTC_LEAPSECS_FILE: str = "/usr/share/zoneinfo/leapseconds";
// Download the file from ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.list,
// and move it to this location.
-export def UTC_LEAPSECS_PATH: str = "/var/db/ntpd.leap-seconds.list";
+export def UTC_LEAPSECS_PATH: str = "@tzdata@/share/zoneinfo/leap-seconds.list";