depot/third_party/nixpkgs/pkgs/servers/dns/dnsdist/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

41 lines
1 KiB
Nix

{ stdenv, fetchurl, pkgconfig, systemd
, boost, libsodium, libedit, re2
, net-snmp, lua, protobuf, openssl, zlib, h2o
}:
stdenv.mkDerivation rec {
pname = "dnsdist";
version = "1.5.0";
src = fetchurl {
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
sha256 = "0n3vy84kczvbwbzmr1d2c9lh3im77gz83wczj0im4zs91kpw81rc";
};
nativeBuildInputs = [ pkgconfig protobuf ];
buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o ];
configureFlags = [
"--enable-libsodium"
"--enable-re2"
"--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;
meta = with stdenv.lib; {
description = "DNS Loadbalancer";
homepage = "https://dnsdist.org";
license = licenses.gpl2;
maintainers = with maintainers; [ das_j ];
};
}