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

42 lines
999 B
Nix
Raw Normal View History

2017-01-17 23:27:26 +00:00
{ stdenv, fetchurl, pkgconfig, boost
, openssl, systemd, lua, luajit, protobuf
, enableLua ? false
, enableProtoBuf ? false
}:
assert enableLua -> lua != null && luajit != null;
assert enableProtoBuf -> protobuf != null;
with stdenv.lib;
stdenv.mkDerivation rec {
name = "pdns-recursor-${version}";
version = "4.0.8";
2017-01-17 23:27:26 +00:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
sha256 = "04v5y6mfdhn8ikigqmm3k5k0zz5l8d3k1a7ih464n1161q7z0vww";
2017-01-17 23:27:26 +00:00
};
nativeBuildInputs = [ pkgconfig ];
2017-01-17 23:27:26 +00:00
buildInputs = [
boost openssl systemd
2017-01-17 23:27:26 +00:00
] ++ optional enableLua [ lua luajit ]
++ optional enableProtoBuf protobuf;
configureFlags = [
"--enable-reproducible"
"--with-systemd"
];
enableParallelBuilding = true;
2017-01-17 23:27:26 +00:00
meta = {
description = "A recursive DNS server";
homepage = http://www.powerdns.com/;
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
};
}