3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/dns/pdns-recursor/default.nix
2017-11-05 17:16:36 +00:00

42 lines
999 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.6";
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
sha256 = "03fnjiacvhdlkr3a2206mham0p6p24gkawashs5v12r68k32l67j";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
boost openssl systemd
] ++ optional enableLua [ lua luajit ]
++ optional enableProtoBuf protobuf;
configureFlags = [
"--enable-reproducible"
"--with-systemd"
];
enableParallelBuilding = true;
meta = {
description = "A recursive DNS server";
homepage = http://www.powerdns.com/;
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
};
}