2018-04-09 21:00:40 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, systemd
|
|
|
|
, boost, libsodium, libedit, re2
|
2019-12-21 23:44:50 +01:00
|
|
|
, net-snmp, lua, protobuf, openssl, zlib, h2o
|
2019-12-21 23:39:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dnsdist";
|
2020-08-01 04:32:41 +02:00
|
|
|
version = "1.5.0";
|
2018-04-09 21:00:40 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
|
2020-08-01 04:32:41 +02:00
|
|
|
sha256 = "0n3vy84kczvbwbzmr1d2c9lh3im77gz83wczj0im4zs91kpw81rc";
|
2018-04-09 21:00:40 +02:00
|
|
|
};
|
|
|
|
|
2019-12-21 23:39:00 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig protobuf ];
|
2019-12-21 23:44:50 +01:00
|
|
|
buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o ];
|
2018-04-09 21:00:40 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-libsodium"
|
|
|
|
"--enable-re2"
|
|
|
|
"--enable-dnscrypt"
|
|
|
|
"--enable-dns-over-tls"
|
2019-12-21 23:39:00 +01:00
|
|
|
"--enable-dns-over-https"
|
2018-04-09 21:00:40 +02:00
|
|
|
"--with-protobuf=yes"
|
|
|
|
"--with-net-snmp"
|
|
|
|
"--disable-dependency-tracking"
|
|
|
|
"--enable-unit-tests"
|
|
|
|
"--enable-systemd"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2019-12-21 23:39:00 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-04-09 21:00:40 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "DNS Loadbalancer";
|
|
|
|
homepage = "https://dnsdist.org";
|
|
|
|
license = licenses.gpl2;
|
2018-06-03 20:46:40 +02:00
|
|
|
maintainers = with maintainers; [ das_j ];
|
2018-04-09 21:00:40 +02:00
|
|
|
};
|
|
|
|
}
|