2017-01-17 15:27:26 -08: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}";
|
2018-06-01 13:49:49 -07:00
|
|
|
version = "4.1.3";
|
2017-01-17 15:27:26 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
2018-06-01 13:49:49 -07:00
|
|
|
sha256 = "12x8gm6771wh2xaqad3p5y08p5pimp6k9h830s0487mwg9glacy1";
|
2017-01-17 15:27:26 -08:00
|
|
|
};
|
|
|
|
|
2017-09-14 12:24:37 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-01-17 15:27:26 -08:00
|
|
|
buildInputs = [
|
2017-09-14 12:24:37 -07:00
|
|
|
boost openssl systemd
|
2018-01-28 15:57:05 -08:00
|
|
|
lua luajit
|
|
|
|
] ++ optional enableProtoBuf protobuf;
|
2017-01-17 15:27:26 -08:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-reproducible"
|
|
|
|
"--with-systemd"
|
|
|
|
];
|
|
|
|
|
2017-11-05 09:16:36 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-01-17 15:27:26 -08:00
|
|
|
meta = {
|
|
|
|
description = "A recursive DNS server";
|
2018-01-05 11:42:46 -08:00
|
|
|
homepage = https://www.powerdns.com/;
|
2017-01-17 15:27:26 -08:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
}
|