2018-02-17 11:47:20 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
2020-10-08 23:53:48 +00:00
|
|
|
, boost, libyamlcpp, libsodium, sqlite, protobuf, openssl
|
2018-02-17 11:47:20 +00:00
|
|
|
, mysql57, postgresql, lua, openldap, geoip, curl, opendbx, unixODBC
|
2016-09-17 21:30:27 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "powerdns";
|
2020-10-12 14:38:06 +00:00
|
|
|
version = "4.2.3";
|
2016-09-17 21:30:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
|
2020-10-12 14:38:06 +00:00
|
|
|
sha256 = "1vf03hssk9rfhvhzfc5ca2r4ly67wq0czr0ysvdrk8pnb0yk6yfi";
|
2016-09-17 21:30:27 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-02-17 11:47:20 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
|
2020-10-08 23:53:48 +00:00
|
|
|
libyamlcpp libsodium curl opendbx unixODBC openssl
|
2018-02-17 11:47:20 +00:00
|
|
|
];
|
2016-09-17 21:30:27 +00:00
|
|
|
|
|
|
|
# nix destroy with-modules arguments, when using configureFlags
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(
|
2018-02-17 11:47:20 +00:00
|
|
|
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote"
|
2016-09-17 21:30:27 +00:00
|
|
|
--with-sqlite3
|
|
|
|
--with-socketdir=/var/lib/powerdns
|
2019-09-08 07:09:29 +00:00
|
|
|
--with-libcrypto=${openssl.dev}
|
2020-10-08 23:53:48 +00:00
|
|
|
--with-libsodium
|
2016-09-17 21:30:27 +00:00
|
|
|
--enable-tools
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-silent-rules
|
|
|
|
--enable-reproducible
|
|
|
|
--enable-unit-tests
|
|
|
|
)
|
|
|
|
'';
|
2018-02-17 11:47:20 +00:00
|
|
|
|
2019-07-13 09:34:17 +00:00
|
|
|
enableParallelBuilding = true;
|
2018-02-17 11:47:20 +00:00
|
|
|
doCheck = true;
|
2016-09-17 21:30:27 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Authoritative DNS server";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.powerdns.com";
|
2019-07-04 00:25:32 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
broken = stdenv.isDarwin;
|
2016-09-17 21:30:27 +00:00
|
|
|
license = licenses.gpl2;
|
2018-03-18 00:30:44 +00:00
|
|
|
maintainers = with maintainers; [ mic92 disassembler ];
|
2016-09-17 21:30:27 +00:00
|
|
|
};
|
|
|
|
}
|