unbound: add updateScript

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2025-04-25 23:16:59 +02:00
parent 4eecf80f20
commit 96fa7dae4d
+13 -4
View File
@@ -48,6 +48,8 @@
withMakeWrapper ? !stdenv.hostPlatform.isMinGW,
libnghttp2,
# for passthru.updateScript
nix-update-script,
# for passthru.tests
gnutls,
}:
@@ -203,10 +205,17 @@ stdenv.mkDerivation (finalAttrs: {
) " --replace '-L${pkg.dev}/lib' '-L${pkg.out}/lib' --replace '-R${pkg.dev}/lib' '-R${pkg.out}/lib'"
) (builtins.filter (p: p != null) finalAttrs.buildInputs);
passthru.tests = {
inherit gnutls;
nixos-test = nixosTests.unbound;
nixos-test-exporter = nixosTests.prometheus-exporters.unbound;
passthru = {
updateScript = nix-update-script {
extraArgs = [
"--version-regex=release-(.+)"
];
};
tests = {
inherit gnutls;
nixos-test = nixosTests.unbound;
nixos-test-exporter = nixosTests.prometheus-exporters.unbound;
};
};
meta = with lib; {