1 { lib, stdenv, fetchurl, pkg-config, systemd
2 , boost, libsodium, libedit, re2
3 , net-snmp, lua, protobuf, openssl, zlib, h2o
7 stdenv.mkDerivation rec {
12 url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
13 hash = "sha256-hYMj8u1RgUiLt1WPv0+E7HGYYAsHCyxTddFdQGlXJ/Q=";
17 # Disable tests requiring networking:
18 # "Error connecting to new server with address 192.0.2.1:53: connecting socket to 192.0.2.1:53: Network is unreachable"
19 ./disable-network-tests.patch
22 nativeBuildInputs = [ pkg-config protobuf ];
23 buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o nghttp2 ];
29 "--enable-dns-over-tls"
30 "--enable-dns-over-https"
33 "--disable-dependency-tracking"
40 enableParallelBuilding = true;
43 inherit (nixosTests) dnsdist;
47 description = "DNS Loadbalancer";
48 mainProgram = "dnsdist";
49 homepage = "https://dnsdist.org";
50 license = licenses.gpl2Only;
51 maintainers = with maintainers; [ jojosch ];