set default zonedir to match fhs (#491193)

This commit is contained in:
Maximilian Bosch
2026-07-04 09:18:03 +00:00
committed by GitHub

View File

@@ -209,7 +209,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"