2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, boost, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
, openssl, systemd, lua, luajit, protobuf
|
|
|
|
, enableProtoBuf ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pdns-recursor";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "4.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "0yaf25jg3gfsi9c9rnxz1ywy3b563plv33aibxrq79iqwk8a289p";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost openssl systemd
|
|
|
|
lua luajit
|
2021-03-09 03:18:52 +00:00
|
|
|
] ++ lib.optional enableProtoBuf protobuf;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-reproducible"
|
2020-10-19 00:13:06 +00:00
|
|
|
"--enable-systemd"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
passthru.tests = {
|
2021-05-20 23:08:51 +00:00
|
|
|
inherit (nixosTests) pdns-recursor ncdns;
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A recursive DNS server";
|
|
|
|
homepage = "https://www.powerdns.com/";
|
|
|
|
platforms = platforms.linux;
|
2021-06-04 09:07:49 +00:00
|
|
|
badPlatforms = [
|
|
|
|
"i686-linux" # a 64-bit time_t is needed
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
}
|