2017-01-18 00:27:26 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, boost
|
|
|
|
, openssl, systemd, lua, luajit, protobuf
|
|
|
|
, enableLua ? false
|
|
|
|
, enableProtoBuf ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableLua -> lua != null && luajit != null;
|
|
|
|
assert enableProtoBuf -> protobuf != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pdns-recursor-${version}";
|
2017-11-05 17:32:06 +01:00
|
|
|
version = "4.0.6";
|
2017-01-18 00:27:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
2017-11-05 17:32:06 +01:00
|
|
|
sha256 = "03fnjiacvhdlkr3a2206mham0p6p24gkawashs5v12r68k32l67j";
|
2017-01-18 00:27:26 +01:00
|
|
|
};
|
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-01-18 00:27:26 +01:00
|
|
|
buildInputs = [
|
2017-09-14 21:24:37 +02:00
|
|
|
boost openssl systemd
|
2017-01-18 00:27:26 +01:00
|
|
|
] ++ optional enableLua [ lua luajit ]
|
|
|
|
++ optional enableProtoBuf protobuf;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-reproducible"
|
|
|
|
"--with-systemd"
|
|
|
|
];
|
|
|
|
|
2017-11-05 18:16:36 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-01-18 00:27:26 +01:00
|
|
|
meta = {
|
|
|
|
description = "A recursive DNS server";
|
|
|
|
homepage = http://www.powerdns.com/;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
}
|