Skip to content

Commit

Permalink
Remove etc/shell.nix in favour of shell.nix (servo/servo#34336) (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
delan authored Nov 22, 2024
1 parent ebbc7f9 commit 0ca1479
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hacking/editor-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ To enable [optional build settings](building-servo.md#optional-build-settings),

### NixOS users

If you are on NixOS and using `--use-crown`, you should also set CARGO_BUILD_RUSTC in `.vscode/settings.json` as follows, where `/nix/store/.../crown` is the output of `nix-shell etc/shell.nix --run 'command -v crown'`.
If you are on NixOS and using `--use-crown`, you should also set CARGO_BUILD_RUSTC in `.vscode/settings.json` as follows, where `/nix/store/.../crown` is the output of `nix-shell --run 'command -v crown'`.

```
{
Expand All @@ -65,7 +65,7 @@ If you are on NixOS and using `--use-crown`, you should also set CARGO_BUILD_RUS
}
```

These settings should be enough to not need to run `code .` from within a `nix-shell etc/shell.nix`, but it wouldn’t hurt to try that if you still have problems.
These settings should be enough to not need to run `code .` from within a `nix-shell`, but it wouldn’t hurt to try that if you still have problems.

When enabling rust-analyzer’s proc macro support, you may start to see errors like

Expand All @@ -76,7 +76,7 @@ Use mach to query the current sysroot path, and copy the last line of output:

```
$ ./mach rustc --print sysroot
NOTE: Entering nix-shell etc/shell.nix
NOTE: Entering nix-shell /path/to/servo/shell.nix
info: component 'llvm-tools' for target 'x86_64-unknown-linux-gnu' is up to date
/home/me/.rustup/toolchains/nightly-2023-02-01-x86_64-unknown-linux-gnu
```
Expand Down

0 comments on commit 0ca1479

Please sign in to comment.