I was reading Hare’s requirements for distributions when I’ve stumbled upon the following statement:
Timekeeping requirements
Hare’s timekeeping support in the standard library relies on a local
installation of the IANA time zone database. Important: Hare uses the
local leap second list as well, at/usr/share/zoneinfo/leap-seconds.list
by
default, which is often not installed by many distributions. Please update
your tzdata package accordingly when packaging Hare.
So I went and checked the nixpkgs’ tzdata package derivation to see if there was such file. To my surprise, such file is absent. That is, running the following command — as well as manual inspection — yields no result for the leap-seconds.list
file:
find $(nix build --json "nixpkgs#tzdata.out" | jq -r '.[]."outputs"."out"') -name "leap-seconds.list" -print
I’ve checked other two distributions, Arch and Alpine Linux, and they both include the leap-seconds.list
file, since it is mentioned in each of their recipes, respectively, here for Arch and here for Alpine.
Would there be any reason for Nix not to include it? If not, what in the current implementation of the tzdata package is causing that file not to be included in any of its outputs, be it out
, dev
, bin
or man
— although, as I believe, it should be in the first one —?