summaryrefslogtreecommitdiffstats
path: root/doc/manual/src/hacking.md
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-09-27 22:35:03 +0200
committerGitHub <noreply@github.com>2020-09-27 20:35:03 +0000
commit3655875483306fa893ec2b01295151819a00ccaa (patch)
treec68fa9e9fabd3856dad29bbec7124db57d95dcfe /doc/manual/src/hacking.md
parent5885b0cfd878b4b60556c5b03bbe52244d04191a (diff)
doc/manual: update hacking docs (#4078)
* By default, build artifacts should be installed into `outputs/` rather than `inst/`[1]. * Add instructions on how to run unit-tests. [1] 733d2e9402807e54d503c3113e854bfddb3d44e0
Diffstat (limited to 'doc/manual/src/hacking.md')
-rw-r--r--doc/manual/src/hacking.md16
1 files changed, 11 insertions, 5 deletions
diff --git a/doc/manual/src/hacking.md b/doc/manual/src/hacking.md
index 5bd884ce8..2a1e55e5b 100644
--- a/doc/manual/src/hacking.md
+++ b/doc/manual/src/hacking.md
@@ -39,17 +39,17 @@ To build Nix itself in this shell:
```console
[nix-shell]$ ./bootstrap.sh
-[nix-shell]$ ./configure $configureFlags --prefix=$(pwd)/inst
+[nix-shell]$ ./configure $configureFlags --prefix=$(pwd)/outputs/out
[nix-shell]$ make -j $NIX_BUILD_CORES
```
-To install it in `$(pwd)/inst` and test it:
+To install it in `$(pwd)/outputs` and test it:
```console
[nix-shell]$ make install
-[nix-shell]$ make installcheck
-[nix-shell]$ ./inst/bin/nix --version
-nix (Nix) 2.4
+[nix-shell]$ make installcheck -j $NIX_BUILD_CORES
+[nix-shell]$ ./outputs/out/bin/nix --version
+nix (Nix) 3.0
```
To run a functional test:
@@ -58,6 +58,12 @@ To run a functional test:
make tests/test-name-should-auto-complete.sh.test
```
+To run the unit-tests for C++ code:
+
+```
+make check
+```
+
If you have a flakes-enabled Nix you can replace:
```console