doc: improve rustPlatform example
This commit is contained in:
parent
3ac474aee6
commit
5b4adc3126
@ -24,9 +24,7 @@ overlay](#using-the-rust-nightlies-overlay).
|
|||||||
Rust applications are packaged by using the `buildRustPackage` helper from `rustPlatform`:
|
Rust applications are packaged by using the `buildRustPackage` helper from `rustPlatform`:
|
||||||
|
|
||||||
```
|
```
|
||||||
with rustPlatform;
|
rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
buildRustPackage rec {
|
|
||||||
name = "ripgrep-${version}";
|
name = "ripgrep-${version}";
|
||||||
version = "0.4.0";
|
version = "0.4.0";
|
||||||
|
|
||||||
@ -40,9 +38,9 @@ buildRustPackage rec {
|
|||||||
cargoSha256 = "0q68qyl2h6i0qsz82z840myxlnjay8p1w5z7hfyr8fqp7wgwa9cx";
|
cargoSha256 = "0q68qyl2h6i0qsz82z840myxlnjay8p1w5z7hfyr8fqp7wgwa9cx";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A utility that combines the usability of The Silver Searcher with the raw speed of grep";
|
description = "A fast line-oriented regex search tool, similar to ag and ack";
|
||||||
homepage = https://github.com/BurntSushi/ripgrep;
|
homepage = https://github.com/BurntSushi/ripgrep;
|
||||||
license = with licenses; [ unlicense ];
|
license = licenses.unlicense;
|
||||||
maintainers = [ maintainers.tailhook ];
|
maintainers = [ maintainers.tailhook ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user