glibc: set default zonedir to match fhs

This commit is contained in:
Matthew Donoughe
2026-02-16 17:28:13 -05:00
parent 902b91d046
commit 8746d3caee

View File

@@ -208,7 +208,12 @@ stdenv.mkDerivation (
makeFlags =
(args.makeFlags or [ ])
++ [ "OBJCOPY=${stdenv.cc.targetPrefix}objcopy" ]
++ [
"OBJCOPY=${stdenv.cc.targetPrefix}objcopy"
# zonedir does nothing on NixOS but is important for non-NixOS.
# See https://github.com/NixOS/nixpkgs/pull/491193
"zonedir=/usr/share/zoneinfo"
]
++ lib.optionals (stdenv.cc.libc != null) [
"BUILD_LDFLAGS=-Wl,-rpath,${stdenv.cc.libc}/lib"
"OBJDUMP=${stdenv.cc.bintools.bintools}/bin/objdump"