1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #185429 from risicle/ris-unbound-patches-passthru-tests

This commit is contained in:
ajs124 2022-08-15 20:21:25 +02:00 committed by GitHub
commit 1c473ab771
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -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";

View file

@ -6,6 +6,7 @@ in
stdenv.mkDerivation rec {
pname = "pyunbound";
inherit (unbound) version src;
patches = unbound.patches or null;
nativeBuildInputs = [ swig ];