Skip to content

Commit

Permalink
Merge pull request #331879 from pbsds/feat-sdl2-tests-1722642424
Browse files Browse the repository at this point in the history
SDL2: add some reverse deps to passthru.tests
  • Loading branch information
pbsds authored Aug 8, 2024
2 parents e72e9ae + 21835c8 commit 7de3f81
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions pkgs/development/libraries/SDL2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
;
};
};

Expand Down

0 comments on commit 7de3f81

Please sign in to comment.