Unverified Commit 96fa7dae authored by Sefa Eyeoglu's avatar Sefa Eyeoglu
Browse files

unbound: add updateScript

parent 4eecf80f
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
@@ -48,6 +48,8 @@
  withMakeWrapper ? !stdenv.hostPlatform.isMinGW,
  libnghttp2,

  # for passthru.updateScript
  nix-update-script,
  # for passthru.tests
  gnutls,
}:
@@ -203,11 +205,18 @@ 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 = {
  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; {
    description = "Validating, recursive, and caching DNS resolver";