Skip to content

Commit

Permalink
Update the hacking guide
Browse files Browse the repository at this point in the history
Use the `devShells` attribute, and the new `nix develop` shortcut
  • Loading branch information
thufschmitt committed Nov 26, 2021
1 parent d9fa9cf commit c28c9d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/manual/src/contributing/hacking.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ To get a shell with a different compilation environment (e.g. stdenv,
gccStdenv, clangStdenv, clang11Stdenv):

```console
$ nix-shell -A devShell.x86_64-linux.clang11StdenvPackages
$ nix-shell -A devShells.x86_64-linux.clang11StdenvPackages
```

or if you have a flake-enabled nix:

```console
$ nix develop .#devShell.x86_64-linux.clang11StdenvPackages
$ nix develop .#clang11StdenvPackages
```

To build Nix itself in this shell:
Expand Down

0 comments on commit c28c9d9

Please sign in to comment.