Compiling Rust project that depends on Rusqlite

When trying to compile the Rusqlite crate, I get a linker error from Clang, with the exit code of 1 and the message:

  = note: /nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find -lsqlite3: No such file or directory
          clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

This of course indicates that I need the sqlite3 binary, however I cannot for the life of me find a way to install this, for the packages nixos.sqlite and nixos.sqlite-interactive don’t seem to provide the dependency. I am thankfull in advance for any assistance.

Are you building this as part of a package/derivation or in nix shell?

If yes how does your nix code look like?

If not, start doing so. You can’t install libraries system wide.

https://nixos.wiki/wiki/FAQ#I_installed_a_library_but_my_compiler_is_not_finding_it._Why.3F

PS: you might also need to have pkg-config as a nativeBuildInputs.