diff options
Diffstat (limited to 'pkgs/development/python-modules/pygame-ce/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/pygame-ce/default.nix | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/pygame-ce/default.nix b/pkgs/development/python-modules/pygame-ce/default.nix index 649c72c0be2a..7ae71a8be1a3 100644 --- a/pkgs/development/python-modules/pygame-ce/default.nix +++ b/pkgs/development/python-modules/pygame-ce/default.nix @@ -19,7 +19,7 @@ libpng, libX11, portmidi, - SDL2, + SDL2_classic, SDL2_image, SDL2_mixer, SDL2_ttf, @@ -60,8 +60,6 @@ buildPythonPackage rec { ]) buildInputs ); }) - # Skip tests that should be disabled without video driver - ./skip-surface-tests.patch ]; postPatch = @@ -101,8 +99,8 @@ buildPythonPackage rec { libjpeg libpng portmidi - SDL2 - SDL2_image + SDL2_classic + (SDL2_image.override { enableSTB = false; }) SDL2_mixer SDL2_ttf ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ]; @@ -117,7 +115,7 @@ buildPythonPackage rec { env = { - SDL_CONFIG = lib.getExe' (lib.getDev SDL2) "sdl2-config"; + SDL_CONFIG = lib.getExe' (lib.getDev SDL2_classic) "sdl2-config"; } // lib.optionalAttrs stdenv.cc.isClang { NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types"; @@ -164,5 +162,12 @@ buildPythonPackage rec { license = lib.licenses.lgpl21Plus; maintainers = [ lib.maintainers.pbsds ]; platforms = lib.platforms.unix; + badPlatforms = [ + # loading pygame.tests.font_test + # /nix/store/mrvg4qq09d51w5s95v15y4ym05q009fd-stdenv-darwin/setup: line 1771: 64131 Segmentation fault: 11 + # + # https://github.com/NixOS/nixpkgs/issues/400378 + lib.systems.inspect.patterns.isDarwin + ]; }; } |
