summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-01-17 18:09:56 +0100
committerJörg Thalheim <joerg@thalheim.io>2021-01-17 18:09:56 +0100
commit57d863b1f03c81f2be744a6e34c37edf6219edf4 (patch)
tree3dc62c99b8019d1e88f6c1e9c9635f63786b242b /doc/languages-frameworks
parent5ca647b244f39cd09ae60840082b37721970d22f (diff)
parent1279bf812ca11fa50a501aad5116c51afd7390a6 (diff)
downloadnixpkgs-57d863b1f03c81f2be744a6e34c37edf6219edf4.tar
nixpkgs-57d863b1f03c81f2be744a6e34c37edf6219edf4.tar.gz
nixpkgs-57d863b1f03c81f2be744a6e34c37edf6219edf4.tar.bz2
nixpkgs-57d863b1f03c81f2be744a6e34c37edf6219edf4.tar.lz
nixpkgs-57d863b1f03c81f2be744a6e34c37edf6219edf4.tar.xz
nixpkgs-57d863b1f03c81f2be744a6e34c37edf6219edf4.tar.zst
nixpkgs-57d863b1f03c81f2be744a6e34c37edf6219edf4.zip
Merge remote-tracking branch 'upstream/staging-next' into HEAD
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r--doc/languages-frameworks/rust.section.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 092e84461b8..dda8d485365 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.