Trying to compile Nim source but... could not load: libSDL2.so

Hi symphorien, thanks for your answer. I tried your recommendation, but I get the same result.

nix-shell -p nim SDL2 SDL2_ttf SDL2_image
# Then, inside new shell
nim -r c platformer.nim

Gave

Hint: used config file '/nix/store/y8319d8cyqpn88fsjdx2a8rs8vrbfgi5-x86_64-unknown-linux-gnu-nim-wrapper-1.4.6/etc/nim/nim.cfg' [Conf]
Hint: used config file '/nix/store/y8319d8cyqpn88fsjdx2a8rs8vrbfgi5-x86_64-unknown-linux-gnu-nim-wrapper-1.4.6/etc/nim/config.nims' [Conf]
Hint: 19397 lines; 0.022s; 25.375MiB peakmem; Debug build; proj: ~/nim/platform/platformer.nim; out: ~/nim/platform/platformer [SuccessX]
Hint: ~/nim/platform/platformer  [Exec]
could not load: libSDL2.so
(compile with -d:nimDebugDlOpen for more information)
Error: execution of an external program failed: '~/nim/platform/platformer '

I will read documention on nix-shell, never used it working with Go programming language, but I see how using C libraries this is useful/needed. If you or anyone have other suggestions I am interested