forked from mirrors/nixpkgs
doc/rust: add missing fetchfromGitHub to derivation example
This commit is contained in:
parent
73414b570a
commit
b06ffb4b45
|
@ -20,7 +20,7 @@ or use Mozilla's [Rust nightlies overlay](#using-the-rust-nightlies-overlay).
|
|||
Rust applications are packaged by using the `buildRustPackage` helper from `rustPlatform`:
|
||||
|
||||
```nix
|
||||
{ lib, rustPlatform }:
|
||||
{ lib, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ripgrep";
|
||||
|
|
Loading…
Reference in a new issue