nixpkgs/pkgs/servers/dns/pdns-recursor/default.nix

39 lines
889 B
Nix
Raw Normal View History

2017-01-17 23:27:26 +00:00
{ stdenv, fetchurl, pkgconfig, boost
, openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false
}:
assert enableProtoBuf -> protobuf != null;
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "pdns-recursor";
2020-03-09 01:24:14 +00:00
version = "4.3.0";
2017-01-17 23:27:26 +00:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
2020-03-09 01:24:14 +00:00
sha256 = "13v2iah7z10wc43v9agcjrzi3wds4jna8f0b7ph35nyzhzr31h9b";
2017-01-17 23:27:26 +00:00
};
nativeBuildInputs = [ pkgconfig ];
2017-01-17 23:27:26 +00:00
buildInputs = [
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"
"--with-systemd"
];
enableParallelBuilding = true;
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 ];
};
}