Skip to content

Commit 69948e3

Browse files
committed
SDL_compat: add passthru.tests
1 parent bf1a329 commit 69948e3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
pkg-config,
1212
pkg-config-unwrapped,
1313
stdenv,
14+
testers,
15+
dosbox,
16+
SDL_image,
17+
SDL_ttf,
18+
SDL_mixer,
19+
SDL_sound,
1420
# Boolean flags
1521
libGLSupported ? lib.elem stdenv.hostPlatform.system mesa.meta.platforms,
1622
openglSupport ? libGLSupported,
@@ -91,6 +97,18 @@ stdenv.mkDerivation (finalAttrs: {
9197
patches = [ ./find-headers.patch ];
9298
setupHook = ./setup-hook.sh;
9399

100+
passthru.tests = {
101+
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
102+
103+
inherit
104+
SDL_image
105+
SDL_ttf
106+
SDL_mixer
107+
SDL_sound
108+
dosbox
109+
;
110+
};
111+
94112
meta = {
95113
homepage = "https://www.libsdl.org/";
96114
description = "Cross-platform multimedia library - build SDL 1.2 applications against 2.0";
@@ -99,5 +117,9 @@ stdenv.mkDerivation (finalAttrs: {
99117
maintainers = with lib.maintainers; [ peterhoeg ];
100118
teams = [ lib.teams.sdl ];
101119
platforms = lib.platforms.all;
120+
pkgConfigModules = [
121+
"sdl"
122+
"sdl12_compat"
123+
];
102124
};
103125
})

0 commit comments

Comments
 (0)