doc: rust: fix syntax error in declarative overlay
Otherwise pasting the snippet into shell.nix results in: error: syntax error, unexpected '=', expecting $end, at /.../shell.nix:2:9 Signed-off-by: Alexei Colin <ac@alexeicolin.com>
This commit is contained in:
parent
c44acaaceb
commit
72bebd8c0c
|
@ -567,12 +567,13 @@ in the `~/.config/nixpkgs/overlays` directory.
|
||||||
Add the following to your `configuration.nix`, `home-configuration.nix`, `shell.nix`, or similar:
|
Add the following to your `configuration.nix`, `home-configuration.nix`, `shell.nix`, or similar:
|
||||||
|
|
||||||
```
|
```
|
||||||
nixpkgs = {
|
{ pkgs ? import <nixpkgs> {
|
||||||
overlays = [
|
overlays = [
|
||||||
(import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz))
|
(import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz))
|
||||||
# Further overlays go here
|
# Further overlays go here
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that this will fetch the latest overlay version when rebuilding your system.
|
Note that this will fetch the latest overlay version when rebuilding your system.
|
||||||
|
|
Loading…
Reference in a new issue