2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, systemd
|
2020-04-24 23:36:52 +00:00
|
|
|
, boost, libsodium, libedit, re2
|
|
|
|
, net-snmp, lua, protobuf, openssl, zlib, h2o
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dnsdist";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "1.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-K9e1M9Lae7RWY8amLkftDS8Zigd/WNxzDEY7eXNjZ0k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config protobuf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o ];
|
|
|
|
|
|
|
|
configureFlags = [
|
2020-10-16 20:44:37 +00:00
|
|
|
"--with-libsodium"
|
|
|
|
"--with-re2"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--enable-dnscrypt"
|
|
|
|
"--enable-dns-over-tls"
|
|
|
|
"--enable-dns-over-https"
|
|
|
|
"--with-protobuf=yes"
|
|
|
|
"--with-net-snmp"
|
|
|
|
"--disable-dependency-tracking"
|
|
|
|
"--enable-unit-tests"
|
|
|
|
"--enable-systemd"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "DNS Loadbalancer";
|
|
|
|
homepage = "https://dnsdist.org";
|
|
|
|
license = licenses.gpl2;
|
2020-11-03 02:18:15 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|