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";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "4.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-2mSYUHOf3XuvLfZFrMl3UszTkJc7VrjiUXHqew0lrSA=";
|
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
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
}
|