aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/src/contributing/hacking.md
diff options
context:
space:
mode:
authorPamplemousse <xav.maso@gmail.com>2021-07-08 09:13:55 -0700
committerregnat <rg@regnat.ovh>2021-11-26 10:04:56 +0100
commit288c25257074e70e69a5d51f63dc783695ff4175 (patch)
treee33aa06591788e8dac72e3bffbc0906ba8df25b2 /doc/manual/src/contributing/hacking.md
parente588f4c6558cb486aa065e17a124f272ccc1fcdb (diff)
Documentation: alternative `stdenv` for hacking
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
Diffstat (limited to 'doc/manual/src/contributing/hacking.md')
-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