Skip to content

Commit d0549fd

Browse files
committed
SDL2_classic: use tests that actually use the package
The default libraries use SDL2 compat after migration, switched to use the specifically created classic variants. Only pygame and pygame-ce use SDL2 classic, other listed packages use SDL2 compat so they were removed. Signed-off-by: Marcin Serwin <[email protected]>
1 parent 1f49a56 commit d0549fd

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

pkgs/by-name/sd/SDL2_classic/package.nix

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,9 @@
4848
withStatic ? stdenv.hostPlatform.isMinGW,
4949
# passthru.tests
5050
testers,
51-
guile-sdl2,
52-
jazz2,
53-
SDL2_ttf,
54-
SDL2_net,
55-
SDL2_gfx,
56-
SDL2_sound,
57-
SDL2_mixer,
58-
SDL2_image,
59-
python3Packages,
51+
SDL2_classic_ttf,
52+
SDL2_classic_mixer,
53+
SDL2_classic_image,
6054
}:
6155

6256
# NOTE: When editing this expression see if the same change applies to
@@ -215,18 +209,12 @@ stdenv.mkDerivation (finalAttrs: {
215209
];
216210
};
217211
tests = {
218-
pkg-config = testers.hasPkgConfigModules { package = finalAttrs.finalPackage; };
212+
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
219213
inherit
220-
guile-sdl2
221-
jazz2
222-
SDL2_ttf
223-
SDL2_net
224-
SDL2_gfx
225-
SDL2_sound
226-
SDL2_mixer
227-
SDL2_image
214+
SDL2_classic_ttf
215+
SDL2_classic_mixer
216+
SDL2_classic_image
228217
;
229-
inherit (python3Packages) pygame pygame-ce pygame-sdl2;
230218
};
231219
};
232220

0 commit comments

Comments
 (0)