mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
powerdns: 4.3.1 -> 4.6.1
This commit is contained in:
parent
5aa4049889
commit
e85e545dbd
@ -10,6 +10,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
||||
services.powerdns.extraConfig = ''
|
||||
launch=gmysql
|
||||
gmysql-user=pdns
|
||||
zone-cache-refresh-interval=0
|
||||
'';
|
||||
|
||||
services.mysql = {
|
||||
|
@ -1,44 +1,41 @@
|
||||
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, nixosTests
|
||||
{ lib, stdenv, fetchurl, pkg-config, nixosTests
|
||||
, boost, libyamlcpp, libsodium, sqlite, protobuf, openssl, systemd
|
||||
, mysql57, postgresql, lua, openldap, geoip, curl, unixODBC
|
||||
, mariadb-connector-c, postgresql, lua, openldap, geoip, curl, unixODBC, lmdb, tinycdb
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "powerdns";
|
||||
version = "4.3.1";
|
||||
version = "4.6.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
|
||||
sha256 = "0if27znz528sir52y9i4gcfhdsym7yxiwjgffy9lpscf1426q56m";
|
||||
sha256 = "sha256-eRKxSIfWKEUYX3zktH21gOqnuLiX3LHJVV3+D6xe+uM=";
|
||||
};
|
||||
|
||||
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 = [ pkg-config ];
|
||||
buildInputs = [
|
||||
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
|
||||
libyamlcpp libsodium curl unixODBC openssl systemd
|
||||
boost mariadb-connector-c postgresql lua openldap sqlite protobuf geoip
|
||||
libyamlcpp libsodium curl unixODBC openssl systemd lmdb tinycdb
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--disable-silent-rules"
|
||||
"--enable-dns-over-tls"
|
||||
"--enable-unit-tests"
|
||||
"--enable-reproducible"
|
||||
"--enable-tools"
|
||||
"--enable-ixfrdist"
|
||||
"--enable-systemd"
|
||||
"--with-libsodium"
|
||||
"--with-sqlite3"
|
||||
"--with-libcrypto=${openssl.dev}"
|
||||
];
|
||||
|
||||
# nix destroy with-modules arguments, when using configureFlags
|
||||
preConfigure = ''
|
||||
configureFlagsArray=(
|
||||
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua2 pipe random remote"
|
||||
--with-sqlite3
|
||||
--with-libcrypto=${openssl.dev}
|
||||
--with-libsodium
|
||||
--enable-tools
|
||||
--disable-dependency-tracking
|
||||
--disable-silent-rules
|
||||
--enable-reproducible
|
||||
--enable-unit-tests
|
||||
--enable-systemd
|
||||
configureFlagsArray+=(
|
||||
"--with-modules="
|
||||
"--with-dynmodules=bind geoip gmysql godbc gpgsql gsqlite3 ldap lmdb lua2 pipe remote tinydns"
|
||||
)
|
||||
'';
|
||||
|
||||
@ -55,6 +52,6 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.unix;
|
||||
broken = stdenv.isDarwin;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ mic92 disassembler ];
|
||||
maintainers = with maintainers; [ mic92 disassembler nickcao ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user