Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions pkgs/by-name/sd/SDL2_image/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
stdenv,
zlib,
# Boolean flags
enableSTB ? true,
## Darwin headless will hang when trying to run the SDL test program
enableSdltest ? (!stdenv.hostPlatform.isDarwin),
}:
Expand All @@ -36,16 +37,17 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
];

buildInputs = [
SDL2
giflib
libXpm
libjpeg
libpng
libtiff
libwebp
zlib
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Foundation ];
buildInputs =
[
SDL2
libtiff
libwebp
zlib
]
++ lib.optionals (!enableSTB) [
libjpeg
libpng
];

configureFlags =
[
Expand All @@ -54,6 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.enableFeature false "png-shared")
(lib.enableFeature false "tif-shared")
(lib.enableFeature false "webp-shared")
(lib.enableFeature enableSTB "stb-image")
(lib.enableFeature enableSdltest "sdltest")
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
Expand Down
17 changes: 0 additions & 17 deletions pkgs/by-name/sd/SDL2_image_2_0/package.nix

This file was deleted.

10 changes: 4 additions & 6 deletions pkgs/development/python-modules/pygame-ce/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
libpng,
libX11,
portmidi,
SDL2,
SDL2_classic,
SDL2_image,
SDL2_mixer,
SDL2_ttf,
Expand Down Expand Up @@ -60,8 +60,6 @@ buildPythonPackage rec {
]) buildInputs
);
})
# Skip tests that should be disabled without video driver
./skip-surface-tests.patch
];

postPatch =
Expand Down Expand Up @@ -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 ];
Expand All @@ -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";
Expand Down
26 changes: 0 additions & 26 deletions pkgs/development/python-modules/pygame-ce/skip-surface-tests.patch

This file was deleted.

2 changes: 1 addition & 1 deletion pkgs/development/python-modules/pygame/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ buildPythonPackage rec {
libX11
portmidi
SDL2_classic
SDL2_image
(SDL2_image.override { enableSTB = false; })
SDL2_mixer
SDL2_ttf
];
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1569,6 +1569,7 @@ mapAliases {
SDL_classic = SDL1; # Added 2024-09-03
SDL1 = throw "'SDL1' has been removed as development ended long ago with SDL 2.0 replacing it, use SDL_compat instead"; # Added 2025-03-27
SDL_gpu = throw "'SDL_gpu' has been removed due to lack of upstream maintenance and known users"; # Added 2025-03-15
SDL_image_2_0 = throw "'SDL_image_2_0' has been removed in favor of the latest version"; # Added 2025-04-20
s2n = throw "'s2n' has been renamed to/replaced by 's2n-tls'"; # Converted to throw 2024-10-17
sandboxfs = throw "'sandboxfs' has been removed due to being unmaintained, consider using linux namespaces for sandboxing instead"; # Added 2024-06-06
sane-backends-git = throw "'sane-backends-git' has been renamed to/replaced by 'sane-backends'"; # Converted to throw 2024-10-17
Expand Down
3 changes: 1 addition & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12263,11 +12263,10 @@ self: super: with self; {

pygal = callPackage ../development/python-modules/pygal { };

pygame = callPackage ../development/python-modules/pygame { SDL2_image = pkgs.SDL2_image_2_0; };
pygame = callPackage ../development/python-modules/pygame { };

pygame-ce = callPackage ../development/python-modules/pygame-ce {
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit;
SDL2_image = pkgs.SDL2_image_2_0;
SDL2_mixer = pkgs.SDL2_mixer_2_0;
};

Expand Down