From 72bebd8c0c4e8fdab99f04e51782ad6687f4881f Mon Sep 17 00:00:00 2001 From: Alexei Colin Date: Sun, 17 Jan 2021 01:29:15 -0500 Subject: [PATCH] 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 --- doc/languages-frameworks/rust.section.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { 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.