SDL2

sdl2-compat 2.32.68

SDL2 compatibility layer that uses SDL3 behind the scenes

https://libsdl.org
zlib License
programs: sdl2-config
Platforms (80)
i686-windowsmips64el-linuxx86_64-darwinaarch64-genodearmv7a-linuxvc4-noneaarch64-linuxaarch64-freebsd
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