bind: add withCheck build to passthru.tests

This commit is contained in:
Robert Scott
2024-08-26 11:52:11 +01:00
parent 1210299ce0
commit c76011440d
+5 -4
View File
@@ -23,12 +23,12 @@
, gitUpdater
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "bind";
version = "9.18.28";
src = fetchurl {
url = "https://downloads.isc.org/isc/bind9/${version}/${pname}-${version}.tar.xz";
url = "https://downloads.isc.org/isc/bind9/${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
hash = "sha256-58zpoWX3thnu/Egy8KjcFrAF0p44kK7WAIxQbqKGpec=";
};
@@ -104,6 +104,7 @@ stdenv.mkDerivation rec {
passthru = {
tests = {
withCheck = finalAttrs.finalPackage.overrideAttrs { doCheck = true; };
inherit (nixosTests) bind;
prometheus-exporter = nixosTests.prometheus-exporters.bind;
kubernetes-dns-single-node = nixosTests.kubernetes.dns-single-node;
@@ -123,10 +124,10 @@ stdenv.mkDerivation rec {
homepage = "https://www.isc.org/bind/";
description = "Domain name server";
license = licenses.mpl20;
changelog = "https://downloads.isc.org/isc/bind9/cur/${lib.versions.majorMinor version}/CHANGES";
changelog = "https://downloads.isc.org/isc/bind9/cur/${lib.versions.majorMinor finalAttrs.version}/CHANGES";
maintainers = with maintainers; [ globin ];
platforms = platforms.unix;
outputsToInstall = [ "out" "dnsutils" "host" ];
};
}
})