I had installed sdl2 by using the command sudo apt-get install libsdl2-2.0-0 libsdl2-dev, then it was installed under the folder /bin/sdl2-config. When I run zig build I still get the error Build Error: ENV variable 'SDL2_PATH' not found%.
Also tried doing export SDL2_PATH=/bin/sdl2-config, but it didn't help.