9c6d255489
GitOrigin-RevId: 8133b9cb5f7c00d4fe31c8c2c4b525bc2650bfc0
42 lines
966 B
Nix
42 lines
966 B
Nix
{ stdenv, fetchurl, pkgconfig, boost, nixosTests
|
|
, openssl, systemd, lua, luajit, protobuf
|
|
, enableProtoBuf ? false
|
|
}:
|
|
assert enableProtoBuf -> protobuf != null;
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pdns-recursor";
|
|
version = "4.3.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
|
sha256 = "0mggqi4588mg6vpgplk9b4ak6msdf279lxkblv563l2vjiyfmfcc";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
boost openssl systemd
|
|
lua luajit
|
|
] ++ optional enableProtoBuf protobuf;
|
|
|
|
configureFlags = [
|
|
"--enable-reproducible"
|
|
"--with-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 ];
|
|
};
|
|
}
|