39 lines
889 B
Nix
39 lines
889 B
Nix
|
{ stdenv, fetchurl, pkgconfig, boost
|
||
|
, openssl, systemd, lua, luajit, protobuf
|
||
|
, enableProtoBuf ? false
|
||
|
}:
|
||
|
assert enableProtoBuf -> protobuf != null;
|
||
|
|
||
|
with stdenv.lib;
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "pdns-recursor";
|
||
|
version = "4.3.0";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
||
|
sha256 = "13v2iah7z10wc43v9agcjrzi3wds4jna8f0b7ph35nyzhzr31h9b";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [ pkgconfig ];
|
||
|
buildInputs = [
|
||
|
boost openssl systemd
|
||
|
lua luajit
|
||
|
] ++ optional enableProtoBuf protobuf;
|
||
|
|
||
|
configureFlags = [
|
||
|
"--enable-reproducible"
|
||
|
"--with-systemd"
|
||
|
];
|
||
|
|
||
|
enableParallelBuilding = true;
|
||
|
|
||
|
meta = {
|
||
|
description = "A recursive DNS server";
|
||
|
homepage = "https://www.powerdns.com/";
|
||
|
platforms = platforms.linux;
|
||
|
license = licenses.gpl2;
|
||
|
maintainers = with maintainers; [ rnhmjoj ];
|
||
|
};
|
||
|
}
|