From b576b17fb00af05968a0ccaddf7ee63857d8d5e2 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 23 Jan 2023 19:42:24 +0100 Subject: [PATCH] zlib: Add tests.pkg-configPackages --- pkgs/development/libraries/zlib/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/libraries/zlib/default.nix b/pkgs/development/libraries/zlib/default.nix index 52654b6541e3..0aa37c86b795 100644 --- a/pkgs/development/libraries/zlib/default.nix +++ b/pkgs/development/libraries/zlib/default.nix @@ -8,6 +8,7 @@ # the `.pc` file lists only the main output's lib dir. # If false, and if `{ static = true; }`, the .a stays in the main output. , splitStaticOutput ? shared && static +, tests }: # Without either the build will actually still succeed because the build @@ -125,6 +126,14 @@ stdenv.mkDerivation rec { "SHARED_MODE=1" ]; + passthru = { + tests = { + # NB: this may test a different variant of zlib than the package that + # carries this `tests` attribute, due to overriding. + pkg-configPackages = tests.pkg-configPackages.zlib; + }; + }; + meta = with lib; { homepage = "https://zlib.net"; description = "Lossless data-compression library";