How to use Guile libraries in Nixpkgs

Solved. nix develop with mkShellNoCC just works, except that foreign library paths must be added manually to $GUILE_EXTENSIONS_PATH.