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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.3 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
2022-01-18 07:59:57 +00:00
, nghttp2, nixosTests
}:
stdenv.mkDerivation rec {
pname = "dnsdist";
2022-11-02 08:35:46 +00:00
version = "1.7.3";
2018-04-09 19:00:40 +00:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
2022-11-02 08:35:46 +00:00
hash = "sha256-fq9vrC8mVlxdhljUKiE3meBfTTvGjnxxbnF030ExWIY=";
2018-04-09 19:00:40 +00:00
};
2022-01-18 07:58:58 +00:00
patches = [
# Disable tests requiring networking:
# "Error connecting to new server with address 192.0.2.1:53: connecting socket to 192.0.2.1:53: Network is unreachable"
./disable-network-tests.patch
];
nativeBuildInputs = [ pkg-config protobuf ];
2022-01-18 07:58:58 +00:00
buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o nghttp2 ];
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;
2022-01-18 07:59:57 +00:00
passthru.tests = {
inherit (nixosTests) dnsdist;
};
meta = with lib; {
2018-04-09 19:00:40 +00:00
description = "DNS Loadbalancer";
homepage = "https://dnsdist.org";
license = licenses.gpl2;
2022-01-18 08:03:25 +00:00
maintainers = with maintainers; [ jojosch ];
2018-04-09 19:00:40 +00:00
};
}