knot-dns: add passthru.tests

I hope I got the conventions right (found in doc/stdenv/meta.chapter.md)

(cherry picked from commit cf0b179b5ea78ff8fd34763c48da4323739fa5fb)
This commit is contained in:
Vladimír Čunát 2021-06-16 12:56:22 +02:00 committed by github-actions[bot]
parent 26febe6bdc
commit 73d3525b3d
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, pkg-config, gnutls, liburcu, lmdb, libcap_ng, libidn2, libunistring
, systemd, nettle, libedit, zlib, libiconv, libintl, libmaxminddb, libbpf, nghttp2
, autoreconfHook
, autoreconfHook, nixosTests
}:
let inherit (lib) optional optionals; in
@ -56,6 +56,8 @@ stdenv.mkDerivation rec {
rm -r "$out"/lib/*.la
'';
passthru.tests = { inherit (nixosTests) knot; };
meta = with lib; {
description = "Authoritative-only DNS server from .cz domain registry";
homepage = "https://knot-dns.cz";