forked from mirrors/nixpkgs
40 lines
965 B
Nix
40 lines
965 B
Nix
{ stdenv, fetchurl, pkgconfig, boost
|
|
, openssl, systemd, lua, luajit, protobuf
|
|
, enableLua ? false
|
|
, enableProtoBuf ? false
|
|
}:
|
|
|
|
assert enableLua -> lua != null && luajit != null;
|
|
assert enableProtoBuf -> protobuf != null;
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pdns-recursor-${version}";
|
|
version = "4.0.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
|
sha256 = "0k8y9zxj2lz4rq782vgzr28yd43q0hwlnvszwq0k9l6c967pff13";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
boost openssl systemd
|
|
] ++ optional enableLua [ lua luajit ]
|
|
++ optional enableProtoBuf protobuf;
|
|
|
|
configureFlags = [
|
|
"--enable-reproducible"
|
|
"--with-systemd"
|
|
];
|
|
|
|
meta = {
|
|
description = "A recursive DNS server";
|
|
homepage = http://www.powerdns.com/;
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
};
|
|
}
|