From f588040472b3c0cacd7987aafe2626c7dc65bde4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 31 Mar 2022 08:33:20 +0200 Subject: [PATCH] powerdns: fix 32-bit builds against glibc --- pkgs/servers/dns/pdns/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/dns/pdns/default.nix b/pkgs/servers/dns/pdns/default.nix index ff057b48bd54..45c15e7edf24 100644 --- a/pkgs/servers/dns/pdns/default.nix +++ b/pkgs/servers/dns/pdns/default.nix @@ -20,6 +20,11 @@ stdenv.mkDerivation rec { libyamlcpp libsodium curl unixODBC openssl systemd lmdb tinycdb ]; + # Configure phase requires 64-bit time_t even on 32-bit platforms. + NIX_CFLAGS_COMPILE = lib.optionals stdenv.hostPlaftorm.is32bit [ + "-D_TIME_BITS=64" "-D_FILE_OFFSET_BITS=64" + ]; + configureFlags = [ "--disable-silent-rules" "--enable-dns-over-tls"