tzdata: disable network access

Without the change tests fail on darwin as
https://hydra.nixos.org/build/272249259/nixlog/164/tail:

    curl: (77) error setting certificate file: /no-cert-file.crt

Possibly because `stdenv` has `curl` there. Upstream suggests disabling
networking access with `CURL=:`. Let's use that.
This commit is contained in:
Sergei Trofimovich 2024-09-12 06:45:24 +01:00
parent 457fc3f13f
commit eff4e92382

View File

@ -34,6 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
"LIBDIR=${placeholder "dev"}/lib"
"MANDIR=${placeholder "man"}/share/man"
"AWK=awk"
"CURL=:" # disable network access
"CFLAGS=-DHAVE_LINK=0"
"CFLAGS+=-DZIC_BLOAT_DEFAULT=\\\"fat\\\""
"cc=${stdenv.cc.targetPrefix}cc"