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

40 lines
936 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, boost, nixosTests
2017-01-17 23:27:26 +00:00
, openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false
}:
stdenv.mkDerivation rec {
pname = "pdns-recursor";
2021-05-20 21:23:31 +00:00
version = "4.5.1";
2017-01-17 23:27:26 +00:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
2021-05-20 21:23:31 +00:00
sha256 = "0yaf25jg3gfsi9c9rnxz1ywy3b563plv33aibxrq79iqwk8a289p";
2017-01-17 23:27:26 +00:00
};
nativeBuildInputs = [ pkg-config ];
2017-01-17 23:27:26 +00:00
buildInputs = [
boost openssl systemd
2018-01-28 23:57:05 +00:00
lua luajit
2021-03-05 02:47:13 +00:00
] ++ lib.optional enableProtoBuf protobuf;
2017-01-17 23:27:26 +00:00
configureFlags = [
"--enable-reproducible"
"--enable-systemd"
2017-01-17 23:27:26 +00:00
];
enableParallelBuilding = true;
passthru.tests = {
2021-05-20 21:23:31 +00:00
inherit (nixosTests) pdns-recursor ncdns;
};
2021-03-05 02:47:13 +00:00
meta = with lib; {
2017-01-17 23:27:26 +00:00
description = "A recursive DNS server";
2020-03-09 01:24:14 +00:00
homepage = "https://www.powerdns.com/";
2017-01-17 23:27:26 +00:00
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
};
}