File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
pkgs/by-name/sd/SDL_compat Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 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} )
You can’t perform that action at this time.
0 commit comments