The dependencies of the corepkgs are not necessarily in the chroot (or in the Nix store), so don't build them in a chroot.
other simplifications. * Use <nix/...> to locate the corepkgs. This allows them to be overriden through $NIX_PATH. * Use bash's pipefail option in the NAR builder so that we don't need to create a temporary file.