How to run SDL2 on Replit

How can I run SDL2 on replit? I put this code on the replit.nix file, but I do not know how to use it:
{ pkgs }: {
deps = [
pkgs.SDL2
];
}

(SDL2 is an actual package on Nix)

1 Like

This worked great for me thank you!

1 Like