From 21835c891e60535a5d091ddec140894bef4aa18c Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 3 Aug 2024 03:03:44 +0200 Subject: [PATCH] SDL2: add some reverse deps to passthru.tests --- pkgs/development/libraries/SDL2/default.nix | 30 +++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix index 816afa176754..2e91a39cc81f 100644 --- a/pkgs/development/libraries/SDL2/default.nix +++ b/pkgs/development/libraries/SDL2/default.nix @@ -51,6 +51,15 @@ , withStatic ? stdenv.hostPlatform.isMinGW # passthru.tests , testers +, guile-sdl2 +, jazz2 +, SDL2_ttf +, SDL2_net +, SDL2_gfx +, SDL2_sound +, SDL2_mixer +, SDL2_image +, python3Packages }: # NOTE: When editing this expression see if the same change applies to @@ -173,8 +182,25 @@ stdenv.mkDerivation (finalAttrs: { passthru = { inherit openglSupport; updateScript = nix-update-script { extraArgs = [ "--version-regex" "release-(.*)" ]; }; - tests.pkg-config = testers.hasPkgConfigModules { - package = finalAttrs.finalPackage; + tests = { + pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + }; + inherit + guile-sdl2 + jazz2 + SDL2_ttf + SDL2_net + SDL2_gfx + SDL2_sound + SDL2_mixer + SDL2_image + ; + inherit (python3Packages) + pygame + pygame-ce + pygame-sdl2 + ; }; };