SDL2

sdl2-compat 2.32.72

SDL2 compatibility layer that uses SDL3 behind the scenes

https://libsdl.org
zlib License
programs: sdl2-config
Platforms (79)
i686-cygwinm68k-linuxarmv7l-netbsdaarch64-linuxaarch64-genoderiscv32-netbsdarmv6l-linuxmicroblaze-linux
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