diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-11-30 11:50:56 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-11-30 11:50:56 +0100 |
commit | b96164f4af4b68a91b68c59087383a4f69e7d81e (patch) | |
tree | a6cd3b5d5216f728e9f4068a3b80fd36f425692f /doc/manual/src | |
parent | 92bcd77a672875add479684de4732473294bc440 (diff) | |
parent | 288c25257074e70e69a5d51f63dc783695ff4175 (diff) |
Merge remote-tracking branch 'origin/build-with-clang'
Diffstat (limited to 'doc/manual/src')
-rw-r--r-- | doc/manual/src/contributing/hacking.md | 19 |
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 |