nixpkgs/pkgs/servers/dns/powerdns/default.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

2018-02-17 12:47:20 +01:00
{ stdenv, fetchurl, pkgconfig
, boost, libyamlcpp, libsodium, sqlite, protobuf, botan2, libressl
2018-02-17 12:47:20 +01:00
, mysql57, postgresql, lua, openldap, geoip, curl, opendbx, unixODBC
2016-09-17 23:30:27 +02:00
}:
stdenv.mkDerivation rec {
pname = "powerdns";
2019-08-21 21:45:16 +02:00
version = "4.1.13";
2016-09-17 23:30:27 +02:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
2019-08-21 21:45:16 +02:00
sha256 = "09az5yp5d9wvzw8faifyzsljhmmc8ifm4j70m4n2sr83i9i9rsp7";
2016-09-17 23:30:27 +02:00
};
nativeBuildInputs = [ pkgconfig ];
2018-02-17 12:47:20 +01:00
buildInputs = [
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
libyamlcpp libsodium curl opendbx unixODBC botan2 libressl
2018-02-17 12:47:20 +01:00
];
2016-09-17 23:30:27 +02:00
# nix destroy with-modules arguments, when using configureFlags
preConfigure = ''
configureFlagsArray=(
2018-02-17 12:47:20 +01:00
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote"
2016-09-17 23:30:27 +02:00
--with-sqlite3
--with-socketdir=/var/lib/powerdns
--with-libcrypto=${libressl.dev}
2016-09-17 23:30:27 +02:00
--enable-libsodium
2018-02-17 12:47:20 +01:00
--enable-botan
2016-09-17 23:30:27 +02:00
--enable-tools
--disable-dependency-tracking
--disable-silent-rules
--enable-reproducible
--enable-unit-tests
)
'';
2018-02-17 12:47:20 +01:00
enableParallelBuilding = true;
2018-02-17 12:47:20 +01:00
doCheck = true;
2016-09-17 23:30:27 +02:00
meta = with stdenv.lib; {
description = "Authoritative DNS server";
homepage = https://www.powerdns.com;
platforms = platforms.unix;
broken = stdenv.isDarwin;
2016-09-17 23:30:27 +02:00
license = licenses.gpl2;
maintainers = with maintainers; [ mic92 disassembler ];
2016-09-17 23:30:27 +02:00
};
}