Run a Bash shell that provides the build environment of a derivation. More information: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-develop.html.
nix develop nixpkgs#pkg
nix develop
configurePhase; buildPhase