Commit 66ebd9e9 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python3Packages.pygame-ce: unbreak on darwin

parent 4473849d
Loading
Loading
Loading
Loading
+6 −13
Original line number Diff line number Diff line
@@ -20,9 +20,9 @@
  libX11,
  portmidi,
  SDL2_classic,
  SDL2_image,
  SDL2_mixer,
  SDL2_ttf,
  SDL2_classic_image,
  SDL2_classic_mixer_2_0,
  SDL2_classic_ttf,
  numpy,

  pygame-gui,
@@ -100,9 +100,9 @@ buildPythonPackage rec {
    libpng
    portmidi
    SDL2_classic
    (SDL2_image.override { enableSTB = false; })
    SDL2_mixer
    SDL2_ttf
    (SDL2_classic_image.override { enableSTB = false; })
    SDL2_classic_mixer_2_0
    SDL2_classic_ttf
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ];

  nativeCheckInputs = [
@@ -162,12 +162,5 @@ 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
    ];
  };
}
+0 −1
Original line number Diff line number Diff line
@@ -12292,7 +12292,6 @@ self: super: with self; {
  pygame-ce = callPackage ../development/python-modules/pygame-ce {
    inherit (pkgs.darwin.apple_sdk.frameworks) AppKit;
    SDL2_mixer = pkgs.SDL2_mixer_2_0;
  };
  pygame-gui = callPackage ../development/python-modules/pygame-gui { };