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

43 lines
966 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, boost, nixosTests
2017-01-17 15:27:26 -08:00
, openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false
}:
assert enableProtoBuf -> protobuf != null;
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "pdns-recursor";
2020-10-12 07:50:01 -07:00
version = "4.3.4";
2017-01-17 15:27:26 -08:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
2020-10-12 07:50:01 -07:00
sha256 = "1l98hdnki95rnpasxj3swm89xc5s2j4zhlybyqa9z7hdhcsnkp9q";
2017-01-17 15:27:26 -08:00
};
nativeBuildInputs = [ pkgconfig ];
2017-01-17 15:27:26 -08:00
buildInputs = [
boost openssl systemd
2018-01-28 15:57:05 -08:00
lua luajit
] ++ optional enableProtoBuf protobuf;
2017-01-17 15:27:26 -08:00
configureFlags = [
"--enable-reproducible"
"--with-systemd"
];
enableParallelBuilding = true;
passthru.tests = {
nixos = nixosTests.pdns-recursor;
};
2017-01-17 15:27:26 -08:00
meta = {
description = "A recursive DNS server";
2020-03-08 18:24:14 -07:00
homepage = "https://www.powerdns.com/";
2017-01-17 15:27:26 -08:00
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
};
}