nixpkgs/pkgs/servers/dns/pdns-recursor/default.nix
2021-05-20 14:37:05 -07:00

40 lines
936 B
Nix

{ lib, stdenv, fetchurl, pkg-config, boost, nixosTests
, openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false
}:
stdenv.mkDerivation rec {
pname = "pdns-recursor";
version = "4.5.1";
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
sha256 = "0yaf25jg3gfsi9c9rnxz1ywy3b563plv33aibxrq79iqwk8a289p";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
boost openssl systemd
lua luajit
] ++ lib.optional enableProtoBuf protobuf;
configureFlags = [
"--enable-reproducible"
"--enable-systemd"
];
enableParallelBuilding = true;
passthru.tests = {
inherit (nixosTests) pdns-recursor ncdns;
};
meta = with lib; {
description = "A recursive DNS server";
homepage = "https://www.powerdns.com/";
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
};
}