nix-shell can be used to run a shell in build environment easily. pkg-config --list-packages or such shows all known packages. grepping configure or configuer.in or such for the package may tell you which exact version is expected. This can help improving your understanding. Marc Weber