aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-11-30 11:50:56 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-11-30 11:50:56 +0100
commitb96164f4af4b68a91b68c59087383a4f69e7d81e (patch)
treea6cd3b5d5216f728e9f4068a3b80fd36f425692f /doc/manual/src
parent92bcd77a672875add479684de4732473294bc440 (diff)
parent288c25257074e70e69a5d51f63dc783695ff4175 (diff)
Merge remote-tracking branch 'origin/build-with-clang'
Diffstat (limited to 'doc/manual/src')
-rw-r--r--doc/manual/src/contributing/hacking.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/manual/src/contributing/hacking.md b/doc/manual/src/contributing/hacking.md
index 2a1e55e5b..90a8f1f94 100644
--- a/doc/manual/src/contributing/hacking.md
+++ b/doc/manual/src/contributing/hacking.md
@@ -35,6 +35,25 @@ variables are set up so that those dependencies can be found:
$ nix-shell
```
+or if you have a flake-enabled nix:
+
+```console
+$ nix develop
+```
+
+To get a shell with a different compilation environment (e.g. stdenv,
+gccStdenv, clangStdenv, clang11Stdenv):
+
+```console
+$ nix-shell -A devShells.x86_64-linux.clang11StdenvPackages
+```
+
+or if you have a flake-enabled nix:
+
+```console
+$ nix develop .#clang11StdenvPackages
+```
+
To build Nix itself in this shell:
```console