nixpkgs/pkgs/servers/dns/dnsdist/default.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

2018-04-09 20:00:40 +01:00
{ stdenv, fetchurl, pkgconfig, systemd
, boost, libsodium, libedit, re2
2019-12-21 22:44:50 +00:00
, net-snmp, lua, protobuf, openssl, zlib, h2o
}:
stdenv.mkDerivation rec {
pname = "dnsdist";
version = "1.4.0";
2018-04-09 20:00:40 +01:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
sha256 = "1h0x5xd13j8xxrrinb7d55851m6n9w0r15wx9m3c50dk7qngldm3";
2018-04-09 20:00:40 +01:00
};
nativeBuildInputs = [ pkgconfig 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 = [
"--enable-libsodium"
"--enable-re2"
"--enable-dnscrypt"
"--enable-dns-over-tls"
"--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;
enableParallelBuilding = true;
2018-04-09 20:00:40 +01:00
meta = with stdenv.lib; {
description = "DNS Loadbalancer";
homepage = "https://dnsdist.org";
license = licenses.gpl2;
maintainers = with maintainers; [ das_j ];
2018-04-09 20:00:40 +01:00
};
}