2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, systemd
|
2018-04-09 20:00:40 +01:00
|
|
|
, boost, libsodium, libedit, re2
|
2019-12-21 22:44:50 +00:00
|
|
|
, net-snmp, lua, protobuf, openssl, zlib, h2o
|
2019-12-21 22:39:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dnsdist";
|
2020-10-24 19:33:26 +01:00
|
|
|
version = "1.5.1";
|
2018-04-09 20:00:40 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
|
2020-10-24 19:33:26 +01:00
|
|
|
sha256 = "1wgv19b6y4fp5x1z54psaaialji2rckl5vdh156kyw47k9r5krya";
|
2018-04-09 20:00:40 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config protobuf ];
|
2019-12-21 22:44:50 +00:00
|
|
|
buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o ];
|
2018-04-09 20:00:40 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
2020-10-11 16:02:55 +01:00
|
|
|
"--with-libsodium"
|
|
|
|
"--with-re2"
|
2018-04-09 20:00:40 +01:00
|
|
|
"--enable-dnscrypt"
|
|
|
|
"--enable-dns-over-tls"
|
2019-12-21 22:39:00 +00:00
|
|
|
"--enable-dns-over-https"
|
2018-04-09 20:00:40 +01:00
|
|
|
"--with-protobuf=yes"
|
|
|
|
"--with-net-snmp"
|
|
|
|
"--disable-dependency-tracking"
|
|
|
|
"--enable-unit-tests"
|
|
|
|
"--enable-systemd"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2019-12-21 22:39:00 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-09 20:00:40 +01:00
|
|
|
description = "DNS Loadbalancer";
|
|
|
|
homepage = "https://dnsdist.org";
|
|
|
|
license = licenses.gpl2;
|
2020-11-02 00:35:47 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-04-09 20:00:40 +01:00
|
|
|
};
|
|
|
|
}
|