diff --git a/pkgs/servers/dns/powerdns/default.nix b/pkgs/servers/dns/powerdns/default.nix index 54dbf3c9e73a..cacd5b7c54fe 100644 --- a/pkgs/servers/dns/powerdns/default.nix +++ b/pkgs/servers/dns/powerdns/default.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchurl, pkgconfig -, boost, libyamlcpp, libsodium, sqlite, protobuf, botan2, openssl +{ stdenv, fetchurl, pkgconfig, nixosTests +, boost, libyamlcpp, libsodium, sqlite, protobuf, openssl, systemd , mysql57, postgresql, lua, openldap, geoip, curl, opendbx, unixODBC }: @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip - libyamlcpp libsodium curl opendbx unixODBC botan2 openssl + libyamlcpp libsodium curl opendbx unixODBC openssl systemd ]; # nix destroy with-modules arguments, when using configureFlags @@ -25,19 +25,23 @@ stdenv.mkDerivation rec { --with-sqlite3 --with-socketdir=/var/lib/powerdns --with-libcrypto=${openssl.dev} - --enable-libsodium - --enable-botan + --with-libsodium --enable-tools --disable-dependency-tracking --disable-silent-rules --enable-reproducible --enable-unit-tests + --enable-systemd ) ''; enableParallelBuilding = true; doCheck = true; + passthru.tests = { + nixos = nixosTests.powerdns; + }; + meta = with stdenv.lib; { description = "Authoritative DNS server"; homepage = "https://www.powerdns.com";