3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/dns/pdns-recursor/default.nix
2020-10-12 13:55:38 -04:00

43 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.4";
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
sha256 = "1l98hdnki95rnpasxj3swm89xc5s2j4zhlybyqa9z7hdhcsnkp9q";
};
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 ];
};
}