{ungoogled-,}chromium,chromedriver: 130.0.6723.58 -> 130.0.6723.69 (#351519)
[NixPkgs.git] / pkgs / servers / dns / dnsdist / default.nix
blobe3afc6c8956d0541c8b778a4140113ee65db9a9f
1 { lib, stdenv, fetchurl, pkg-config, systemd
2 , boost, libsodium, libedit, re2
3 , net-snmp, lua, protobuf, openssl, zlib, h2o
4 , nghttp2, nixosTests
5 }:
7 stdenv.mkDerivation rec {
8   pname = "dnsdist";
9   version = "1.8.3";
11   src = fetchurl {
12     url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
13     hash = "sha256-hYMj8u1RgUiLt1WPv0+E7HGYYAsHCyxTddFdQGlXJ/Q=";
14   };
16   patches = [
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
20   ];
22   nativeBuildInputs = [ pkg-config protobuf ];
23   buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o nghttp2 ];
25   configureFlags = [
26     "--with-libsodium"
27     "--with-re2"
28     "--enable-dnscrypt"
29     "--enable-dns-over-tls"
30     "--enable-dns-over-https"
31     "--with-protobuf=yes"
32     "--with-net-snmp"
33     "--disable-dependency-tracking"
34     "--enable-unit-tests"
35     "--enable-systemd"
36   ];
38   doCheck = true;
40   enableParallelBuilding = true;
42   passthru.tests = {
43     inherit (nixosTests) dnsdist;
44   };
46   meta = with lib; {
47     description = "DNS Loadbalancer";
48     mainProgram = "dnsdist";
49     homepage = "https://dnsdist.org";
50     license = licenses.gpl2Only;
51     maintainers = with maintainers; [ jojosch ];
52   };