Created
November 26, 2025 12:34
-
-
Save kenanpelit/387c020fa7b881b50d6d02d2715b71b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { pkgs ? import <nixpkgs> {} }: | |
| pkgs.mkShell { | |
| buildInputs = with pkgs; [ | |
| python313 | |
| stdenv.cc.cc.lib | |
| glib | |
| SDL2 | |
| SDL2_mixer | |
| SDL2_image | |
| SDL2_ttf | |
| libpng | |
| libjpeg | |
| zlib | |
| wayland | |
| libxkbcommon | |
| xorg.libX11 | |
| xorg.libXext | |
| xorg.libXrender | |
| ]; | |
| shellHook = '' | |
| export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [ | |
| pkgs.stdenv.cc.cc.lib | |
| pkgs.glib | |
| pkgs.SDL2 | |
| pkgs.SDL2_mixer | |
| pkgs.SDL2_image | |
| pkgs.SDL2_ttf | |
| pkgs.wayland | |
| pkgs.libxkbcommon | |
| pkgs.xorg.libX11 | |
| pkgs.xorg.libXext | |
| ]} | |
| export SDL_VIDEODRIVER=x11 | |
| if [ ! -d venv ]; then | |
| python -m venv venv | |
| fi | |
| source venv/bin/activate | |
| python -c "import pygame" 2>/dev/null || pip install pygame-ce | |
| ''; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment