2020-10-12 18:55:38 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, boost, nixosTests
|
2017-01-17 23:27:26 +00:00
|
|
|
, openssl, systemd, lua, luajit, protobuf
|
|
|
|
, enableProtoBuf ? false
|
|
|
|
}:
|
|
|
|
assert enableProtoBuf -> protobuf != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pdns-recursor";
|
2020-10-29 07:34:13 +00:00
|
|
|
version = "4.4.0";
|
2017-01-17 23:27:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
2020-10-29 07:34:13 +00:00
|
|
|
sha256 = "12z59xf63iskid08c3y55h238ma2chgvcbks0zprag7i00p97g06";
|
2017-01-17 23:27:26 +00:00
|
|
|
};
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-01-17 23:27:26 +00:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01: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"
|
2020-10-17 22:42:41 +01:00
|
|
|
"--enable-systemd"
|
2017-01-17 23:27:26 +00:00
|
|
|
];
|
|
|
|
|
2017-11-05 17:16:36 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-10-12 18:55:38 +01:00
|
|
|
passthru.tests = {
|
|
|
|
nixos = nixosTests.pdns-recursor;
|
|
|
|
};
|
|
|
|
|
2017-01-17 23:27:26 +00:00
|
|
|
meta = {
|
|
|
|
description = "A recursive DNS server";
|
2020-03-09 01:24:14 +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 ];
|
|
|
|
};
|
|
|
|
}
|