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