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

39 lines
897 B
Nix
Raw Normal View History

2017-01-18 00:27:26 +01:00
{ stdenv, fetchurl, pkgconfig, boost
, openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false
}:
assert enableProtoBuf -> protobuf != null;
with stdenv.lib;
stdenv.mkDerivation rec {
name = "pdns-recursor-${version}";
version = "4.1.3";
2017-01-18 00:27:26 +01:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
sha256 = "12x8gm6771wh2xaqad3p5y08p5pimp6k9h830s0487mwg9glacy1";
2017-01-18 00:27:26 +01:00
};
nativeBuildInputs = [ pkgconfig ];
2017-01-18 00:27:26 +01:00
buildInputs = [
boost openssl systemd
2018-01-29 00:57:05 +01:00
lua luajit
] ++ optional enableProtoBuf protobuf;
2017-01-18 00:27:26 +01:00
configureFlags = [
"--enable-reproducible"
"--with-systemd"
];
enableParallelBuilding = true;
2017-01-18 00:27:26 +01:00
meta = {
description = "A recursive DNS server";
homepage = https://www.powerdns.com/;
2017-01-18 00:27:26 +01:00
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
};
}