mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
Apply suggestions from code review
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
b829fe48e3
commit
326cfefd68
1 changed files with 2 additions and 3 deletions
|
@ -917,8 +917,7 @@ As of writing, this prints out `rustc 1.56.0 (09c42c458 2021-10-18)`.
|
||||||
You can also use an overlay's Rust toolchain with `buildRustPackage`.
|
You can also use an overlay's Rust toolchain with `buildRustPackage`.
|
||||||
The below snippet demonstrates invoking `buildRustPackage` with an oxalica overlay selected Rust toolchain:
|
The below snippet demonstrates invoking `buildRustPackage` with an oxalica overlay selected Rust toolchain:
|
||||||
```nix
|
```nix
|
||||||
with import <nixpkgs>
|
with import <nixpkgs> {
|
||||||
{
|
|
||||||
overlays = [
|
overlays = [
|
||||||
(import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))
|
(import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))
|
||||||
];
|
];
|
||||||
|
@ -933,7 +932,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "BurntSushi";
|
owner = "BurntSushi";
|
||||||
repo = pname;
|
repo = "ripgrep";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1hqps7l5qrjh9f914r5i6kmcz6f1yb951nv4lby0cjnp5l253kps";
|
sha256 = "1hqps7l5qrjh9f914r5i6kmcz6f1yb951nv4lby0cjnp5l253kps";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue