2016-09-17 23:30:27 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig,
|
|
|
|
boost, libyamlcpp, libsodium, sqlite, protobuf,
|
|
|
|
libmysql, postgresql, lua, openldap, geoip, curl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "powerdns-${version}";
|
|
|
|
version = "4.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
|
|
|
|
sha256 = "1mzdj5077cn6cip51sxknz5hx0cyqlsrix39b7l30i36lvafx4fi";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ boost libmysql postgresql lua openldap sqlite protobuf geoip libyamlcpp pkgconfig libsodium curl ];
|
|
|
|
|
|
|
|
# nix destroy with-modules arguments, when using configureFlags
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(
|
|
|
|
"--with-modules=bind gmysql geoip gpgsql gsqlite3 ldap lua pipe random remote"
|
|
|
|
--with-sqlite3
|
|
|
|
--with-socketdir=/var/lib/powerdns
|
|
|
|
--enable-libsodium
|
|
|
|
--enable-tools
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-silent-rules
|
|
|
|
--enable-reproducible
|
|
|
|
--enable-unit-tests
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
checkPhase = "make check";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Authoritative DNS server";
|
|
|
|
homepage = http://www.powerdns.com/;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
# cannot find postgresql libs on macos x
|
|
|
|
license = licenses.gpl2;
|
2016-10-01 17:48:09 +02:00
|
|
|
maintainers = [ maintainers.mic92 maintainers.nhooyr ];
|
2016-09-17 23:30:27 +02:00
|
|
|
};
|
|
|
|
}
|