hacking.md: add --prefix flag to configure

Otherwise, the steps advertised in this document won't actually work
(e.g. `make install` will fail, trying to access /usr, and
`./inst/bin/nix` won't exist).
This commit is contained in:
Cole Helbling 2020-09-01 12:06:02 -07:00
parent a76b8b5467
commit a72ed3e8a1
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -39,7 +39,7 @@ To build Nix itself in this shell:
```console
[nix-shell]$ ./bootstrap.sh
[nix-shell]$ ./configure $configureFlags
[nix-shell]$ ./configure $configureFlags --prefix=$(pwd)/inst
[nix-shell]$ make -j $NIX_BUILD_CORES
```