a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
42 lines
1,008 B
Nix
42 lines
1,008 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.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
|
sha256 = "17A0RwCSV+US8B/MRsvbnIWbZyocmyP684LocHZbDw0=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|