mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
unbound: adopt and small changes (#401888)
This commit is contained in:
commit
75d6654eeb
1 changed files with 17 additions and 8 deletions
|
@ -48,6 +48,8 @@
|
||||||
withMakeWrapper ? !stdenv.hostPlatform.isMinGW,
|
withMakeWrapper ? !stdenv.hostPlatform.isMinGW,
|
||||||
libnghttp2,
|
libnghttp2,
|
||||||
|
|
||||||
|
# for passthru.updateScript
|
||||||
|
nix-update-script,
|
||||||
# for passthru.tests
|
# for passthru.tests
|
||||||
gnutls,
|
gnutls,
|
||||||
}:
|
}:
|
||||||
|
@ -203,17 +205,24 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
) " --replace '-L${pkg.dev}/lib' '-L${pkg.out}/lib' --replace '-R${pkg.dev}/lib' '-R${pkg.out}/lib'"
|
) " --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);
|
) (builtins.filter (p: p != null) finalAttrs.buildInputs);
|
||||||
|
|
||||||
passthru.tests = {
|
passthru = {
|
||||||
|
updateScript = nix-update-script {
|
||||||
|
extraArgs = [
|
||||||
|
"--version-regex=release-(.+)"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
tests = {
|
||||||
inherit gnutls;
|
inherit gnutls;
|
||||||
nixos-test = nixosTests.unbound;
|
nixos-test = nixosTests.unbound;
|
||||||
nixos-test-exporter = nixosTests.prometheus-exporters.unbound;
|
nixos-test-exporter = nixosTests.prometheus-exporters.unbound;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Validating, recursive, and caching DNS resolver";
|
description = "Validating, recursive, and caching DNS resolver";
|
||||||
license = licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
homepage = "https://www.unbound.net";
|
homepage = "https://www.unbound.net";
|
||||||
maintainers = [ ];
|
maintainers = with lib.maintainers; [ Scrumplex ];
|
||||||
platforms = platforms.unix ++ platforms.windows;
|
platforms = with lib.platforms; unix ++ windows;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue