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

42 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, systemd
2018-04-09 19:00:40 +00:00
, boost, libsodium, libedit, re2
2019-12-21 22:44:50 +00:00
, net-snmp, lua, protobuf, openssl, zlib, h2o
}:
stdenv.mkDerivation rec {
pname = "dnsdist";
2021-05-11 12:31:46 +00:00
version = "1.5.2";
2018-04-09 19:00:40 +00:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
2021-05-11 12:31:46 +00:00
sha256 = "sha256-K9e1M9Lae7RWY8amLkftDS8Zigd/WNxzDEY7eXNjZ0k=";
2018-04-09 19:00:40 +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 19:00:40 +00:00
configureFlags = [
2020-10-11 15:02:55 +00:00
"--with-libsodium"
"--with-re2"
2018-04-09 19:00:40 +00:00
"--enable-dnscrypt"
"--enable-dns-over-tls"
"--enable-dns-over-https"
2018-04-09 19:00:40 +00:00
"--with-protobuf=yes"
"--with-net-snmp"
"--disable-dependency-tracking"
"--enable-unit-tests"
"--enable-systemd"
];
doCheck = true;
enableParallelBuilding = true;
meta = with lib; {
2018-04-09 19:00:40 +00:00
description = "DNS Loadbalancer";
homepage = "https://dnsdist.org";
license = licenses.gpl2;
maintainers = with maintainers; [ SuperSandro2000 ];
2018-04-09 19:00:40 +00:00
};
}