nixpkgs-suyu/pkgs/servers/dns/pdns-recursor/default.nix
2018-09-03 22:15:11 +02:00

38 lines
897 B
Nix

{ 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.4";
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
sha256 = "0l5mf45r3x1z5mg95zpbyms88zv307hsrrx4h6jm9zm3pr9l77xi";
};
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 ];
};
}