summary refs log tree commit diff
path: root/doc/languages-frameworks/rust.section.md
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-01-10 22:30:22 +0100
committerProfpatsch <mail@profpatsch.de>2021-01-11 09:52:27 +0100
commitb0c1583a0b606560a4a47322fc849cfc1cfa0090 (patch)
tree9aaa3f124d722c2e6231fd1f6bfa38e9d6d1fabc /doc/languages-frameworks/rust.section.md
parent9ff73686ed0127d9cc65633053e6d7a554ff179a (diff)
downloadnixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.gz
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.bz2
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.lz
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.xz
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.zst
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.zip
doc: stdenv.lib -> lib
Part of: https://github.com/NixOS/nixpkgs/issues/108938

Changing the documentation to not refer to stdenv.lib is the first
step to make people use it directly.
Diffstat (limited to 'doc/languages-frameworks/rust.section.md')
-rw-r--r--doc/languages-frameworks/rust.section.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 231cbe900e7..092e84461b8 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -32,7 +32,7 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "03wf9r2csi6jpa7v5sw5lpxkrk4wfzwmzx7k3991q3bdjzcwnnwp";
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "A fast line-oriented regex search tool, similar to ag and ack";
     homepage = "https://github.com/BurntSushi/ripgrep";
     license = licenses.unlicense;
@@ -58,13 +58,13 @@ then be taken from the failed build. A fake hash can be used for
 `cargoSha256` as follows:
 
 ```
-  cargoSha256 = stdenv.lib.fakeSha256;
+  cargoSha256 = lib.fakeSha256;
 ```
 
 For `cargoHash` you can use:
 
 ```
-  cargoHash = stdenv.lib.fakeHash;
+  cargoHash = lib.fakeHash;
 ```
 
 Per the instructions in the [Cargo Book](https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html)