2020-10-16 20:44:37 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, boost, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
, openssl, systemd, lua, luajit, protobuf
|
|
|
|
, enableProtoBuf ? false
|
|
|
|
}:
|
|
|
|
assert enableProtoBuf -> protobuf != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pdns-recursor";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "4.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
2020-11-30 08:33:03 +00:00
|
|
|
sha256 = "162nczipxnsbgg7clap697yikxjz1vdsjkaxxsn6hb6l6m3a6zzr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [
|
|
|
|
boost openssl systemd
|
|
|
|
lua luajit
|
|
|
|
] ++ optional enableProtoBuf protobuf;
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
nixos = nixosTests.pdns-recursor;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A recursive DNS server";
|
|
|
|
homepage = "https://www.powerdns.com/";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
}
|