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

43 lines
1.2 KiB
Nix
Raw Normal View History

2016-09-17 21:30:27 +00:00
{ stdenv, fetchurl, pkgconfig,
boost, libyamlcpp, libsodium, sqlite, protobuf,
libmysql, postgresql, lua, openldap, geoip, curl
}:
stdenv.mkDerivation rec {
name = "powerdns-${version}";
2017-10-18 15:46:54 +00:00
version = "4.0.4";
2016-09-17 21:30:27 +00:00
src = fetchurl {
url = "http://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
2017-10-18 15:46:54 +00:00
sha256 = "0qypns1iqlrc5d3iwabrsi1vpb0yffy36chsb1zpqiv9vs4snx6r";
2016-09-17 21:30:27 +00:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost libmysql postgresql lua openldap sqlite protobuf geoip libyamlcpp libsodium curl ];
2016-09-17 21:30:27 +00:00
# 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 = https://www.powerdns.com;
2016-09-17 21:30:27 +00:00
platforms = platforms.linux;
# cannot find postgresql libs on macos x
license = licenses.gpl2;
2017-10-18 18:49:23 +00:00
maintainers = [ maintainers.mic92 ];
2016-09-17 21:30:27 +00:00
};
}