diff options
author | Alexei Colin <ac@alexeicolin.com> | 2021-01-17 01:29:15 -0500 |
---|---|---|
committer | Alexei Colin <ac@alexeicolin.com> | 2021-01-17 01:29:15 -0500 |
commit | 72bebd8c0c4e8fdab99f04e51782ad6687f4881f (patch) | |
tree | 47fbc8e7070db29bc1d5c5b6e7a3b717da926d52 /doc | |
parent | c44acaaceb04ab149b805656eeffcdf2acf939e6 (diff) |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/rust.section.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index 092e84461b81..dda8d485365e 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -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. |