mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
Merge pull request #185429 from risicle/ris-unbound-patches-passthru-tests
This commit is contained in:
commit
1c473ab771
@ -37,8 +37,13 @@
|
||||
# Avoid .lib depending on lib.getLib openssl
|
||||
# The build gets a little hacky, so in some cases we disable this approach.
|
||||
, withSlimLib ? stdenv.isLinux && !stdenv.hostPlatform.isMusl && !withDNSTAP
|
||||
# enable support for python plugins in unbound: note this is distinct from pyunbound
|
||||
# see https://unbound.docs.nlnetlabs.nl/en/latest/developer/python-modules.html
|
||||
, withPythonModule ? false
|
||||
, libnghttp2
|
||||
|
||||
# for passthru.tests
|
||||
, gnutls
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -142,7 +147,10 @@ stdenv.mkDerivation rec {
|
||||
(pkg: lib.optionalString (pkg ? dev) " --replace '-L${pkg.dev}/lib' '-L${pkg.out}/lib' --replace '-R${pkg.dev}/lib' '-R${pkg.out}/lib'")
|
||||
(builtins.filter (p: p != null) buildInputs);
|
||||
|
||||
passthru.tests = nixosTests.unbound;
|
||||
passthru.tests = {
|
||||
inherit gnutls;
|
||||
nixos-test = nixosTests.unbound;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Validating, recursive, and caching DNS resolver";
|
||||
|
@ -6,6 +6,7 @@ in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pyunbound";
|
||||
inherit (unbound) version src;
|
||||
patches = unbound.patches or null;
|
||||
|
||||
nativeBuildInputs = [ swig ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user