mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
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:
|
||||
|
||||
```
|
||||
nixpkgs = {
|
||||
{ pkgs ? import <nixpkgs> {
|
||||
overlays = [
|
||||
(import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz))
|
||||
# Further overlays go here
|
||||
];
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
Note that this will fetch the latest overlay version when rebuilding your system.
|
||||
|
Loading…
Reference in New Issue
Block a user