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

43 lines
1,016 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, boost, nixosTests
2017-01-18 00:27:26 +01:00
, openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false
}:
stdenv.mkDerivation rec {
pname = "pdns-recursor";
2021-11-28 01:11:09 +01:00
version = "4.5.7";
2017-01-18 00:27:26 +01:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
2021-11-28 01:11:09 +01:00
sha256 = "1avvs1wpck0rahx80xnnaw94hdrfbhi1jdvgg1zpac26mzab4kdd";
2017-01-18 00:27:26 +01:00
};
nativeBuildInputs = [ pkg-config ];
2017-01-18 00:27:26 +01:00
buildInputs = [
boost openssl systemd
2018-01-29 00:57:05 +01:00
lua luajit
2021-03-05 03:47:13 +01:00
] ++ lib.optional enableProtoBuf protobuf;
2017-01-18 00:27:26 +01:00
configureFlags = [
"--enable-reproducible"
"--enable-systemd"
2017-01-18 00:27:26 +01:00
];
enableParallelBuilding = true;
passthru.tests = {
2021-05-20 23:23:31 +02:00
inherit (nixosTests) pdns-recursor ncdns;
};
2021-03-05 03:47:13 +01:00
meta = with lib; {
2017-01-18 00:27:26 +01:00
description = "A recursive DNS server";
2020-03-09 02:24:14 +01:00
homepage = "https://www.powerdns.com/";
2017-01-18 00:27:26 +01:00
platforms = platforms.linux;
badPlatforms = [
"i686-linux" # a 64-bit time_t is needed
];
2021-06-13 11:03:16 +02:00
license = licenses.gpl2Only;
2017-01-18 00:27:26 +01:00
maintainers = with maintainers; [ rnhmjoj ];
};
}