SDL2

sdl2-compat 2.32.74

SDL2 compatibility layer that uses SDL3 behind the scenes

https://libsdl.org
zlib License
programs: sdl2-config
Platforms (79)
x86_64-solariswasm64-wasip1javascript-ghcjspowerpc-nonemicroblazeel-linuxarmv6l-linuxaarch64-darwini686-genode
View source on NixOS/nixpkgs →

Install

Copy into your configuration

NixOS (configuration.nix)
environment.systemPackages = with pkgs; [
  SDL2
];
Ad-hoc shell
nix-shell -p SDL2
Flake (nix run)
nix run nixpkgs#SDL2