Skip to content

Commit

Permalink
tzdata: disable network access
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit eff4e92)
  • Loading branch information
trofi authored and github-actions[bot] committed Sep 19, 2024
1 parent e66a920 commit cec7716
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/data/misc/tzdata/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cec7716

Please sign in to comment.