a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
42 lines
966 B
Nix
42 lines
966 B
Nix
{ lib, stdenv, fetchurl, pkgconfig, boost, nixosTests
|
|
, openssl, systemd, lua, luajit, protobuf
|
|
, enableProtoBuf ? false
|
|
}:
|
|
assert enableProtoBuf -> protobuf != null;
|
|
|
|
with lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pdns-recursor";
|
|
version = "4.4.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
|
sha256 = "1kzmliim2pwh04y3y6bpai9fm0qmdicrmff09fv5h5wahi4pzfdh";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
boost openssl systemd
|
|
lua luajit
|
|
] ++ optional enableProtoBuf protobuf;
|
|
|
|
configureFlags = [
|
|
"--enable-reproducible"
|
|
"--enable-systemd"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.tests = {
|
|
nixos = nixosTests.pdns-recursor;
|
|
};
|
|
|
|
meta = {
|
|
description = "A recursive DNS server";
|
|
homepage = "https://www.powerdns.com/";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
};
|
|
}
|