2018-04-09 20:00:40 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, systemd
|
|
|
|
, boost, libsodium, libedit, re2
|
|
|
|
, net_snmp, lua, protobuf, openssl }: stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dnsdist";
|
2018-07-13 12:36:26 +01:00
|
|
|
version = "1.3.2";
|
2018-04-09 20:00:40 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
|
2018-07-13 12:36:26 +01:00
|
|
|
sha256 = "1i3b1vpk9a8zbx9aby2s1ckkzhlvzgn11hcgj3b8x2j1b9771rqb";
|
2018-04-09 20:00:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ systemd boost libsodium libedit re2 net_snmp lua protobuf openssl ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-libsodium"
|
|
|
|
"--enable-re2"
|
|
|
|
"--enable-dnscrypt"
|
|
|
|
"--enable-dns-over-tls"
|
|
|
|
"--with-protobuf=yes"
|
|
|
|
"--with-net-snmp"
|
|
|
|
"--disable-dependency-tracking"
|
|
|
|
"--enable-unit-tests"
|
|
|
|
"--enable-systemd"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "DNS Loadbalancer";
|
|
|
|
homepage = "https://dnsdist.org";
|
|
|
|
license = licenses.gpl2;
|
2018-06-03 19:46:40 +01:00
|
|
|
maintainers = with maintainers; [ das_j ];
|
2018-04-09 20:00:40 +01:00
|
|
|
};
|
|
|
|
}
|