nixpkgs/pkgs/servers/dns/pdns-recursor/default.nix
2023-02-06 16:32:08 +00:00

43 lines
1015 B
Nix

{ lib, stdenv, fetchurl, pkg-config, boost, nixosTests
, openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false
}:
stdenv.mkDerivation rec {
pname = "pdns-recursor";
version = "4.8.2";
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
sha256 = "sha256-Q4LT6E8TQBaFdyd53+3my8gVfs9nY/p/2x3TPuP3msc=";
};
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;
badPlatforms = [
"i686-linux" # a 64-bit time_t is needed
];
license = licenses.gpl2Only;
maintainers = with maintainers; [ rnhmjoj ];
};
}