mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
f4e9e42725
This addresses CVE-2019-3871. The details of the issue can be retrieved from the official announcement page [0]. [0] https://docs.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-03.html
49 lines
1.4 KiB
Nix
49 lines
1.4 KiB
Nix
{ stdenv, fetchurl, pkgconfig
|
|
, boost, libyamlcpp, libsodium, sqlite, protobuf, botan2, libressl
|
|
, mysql57, postgresql, lua, openldap, geoip, curl, opendbx, unixODBC
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "powerdns-${version}";
|
|
version = "4.1.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
|
|
sha256 = "11c4r0mbq6ybbihm0jbl9hspb01pj1gi6x3m374liw9jij7dw8b4";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
|
|
libyamlcpp libsodium curl opendbx unixODBC botan2 libressl
|
|
];
|
|
|
|
# nix destroy with-modules arguments, when using configureFlags
|
|
preConfigure = ''
|
|
configureFlagsArray=(
|
|
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote"
|
|
--with-sqlite3
|
|
--with-socketdir=/var/lib/powerdns
|
|
--with-libcrypto=${libressl.dev}
|
|
--enable-libsodium
|
|
--enable-botan
|
|
--enable-tools
|
|
--disable-dependency-tracking
|
|
--disable-silent-rules
|
|
--enable-reproducible
|
|
--enable-unit-tests
|
|
)
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Authoritative DNS server";
|
|
homepage = https://www.powerdns.com;
|
|
platforms = platforms.linux;
|
|
# cannot find postgresql libs on macos x
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ mic92 disassembler ];
|
|
};
|
|
}
|