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

43 lines
966 B
Nix
Raw Normal View History

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