mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, pkg-config, systemd
|
|
, boost, libsodium, libedit, re2
|
|
, net-snmp, lua, protobuf, openssl, zlib, h2o
|
|
, nghttp2, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dnsdist";
|
|
version = "1.8.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
|
|
hash = "sha256-hYMj8u1RgUiLt1WPv0+E7HGYYAsHCyxTddFdQGlXJ/Q=";
|
|
};
|
|
|
|
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 ];
|
|
buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o nghttp2 ];
|
|
|
|
configureFlags = [
|
|
"--with-libsodium"
|
|
"--with-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;
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) dnsdist;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "DNS Loadbalancer";
|
|
mainProgram = "dnsdist";
|
|
homepage = "https://dnsdist.org";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ jojosch ];
|
|
};
|
|
}
|