powerdns: patch build with gcc 10

This commit is contained in:
Vladimír Čunát 2021-01-04 19:12:33 +01:00
parent 59d08b1e69
commit 9af686703d
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, nixosTests
{ stdenv, fetchurl, fetchpatch, pkgconfig, nixosTests
, boost, libyamlcpp, libsodium, sqlite, protobuf, openssl, systemd
, mysql57, postgresql, lua, openldap, geoip, curl, unixODBC
}:
@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "0if27znz528sir52y9i4gcfhdsym7yxiwjgffy9lpscf1426q56m";
};
patches = [
(fetchpatch { # remove for >= 4.4.0
name = "gcc-10_undefined-reference.diff";
url = "https://github.com/PowerDNS/pdns/commit/05c9dd77b28.diff";
sha256 = "1m9szbi02h9kcabgw3kb8k9qrb54d34z0qzizrlfiw3hxs6c2zql";
})
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip