powerdns: fix 32-bit builds against glibc

This commit is contained in:
Vladimír Čunát 2022-03-31 08:33:20 +02:00
parent 3c526dbe2c
commit f588040472
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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"