doc: rust: rephrase paragraph about `cargoLock.lockFileContents`

mentioning that `Cargo.lock` cannot be patched in the `patchPhase`

authored by Robin Stumm and committed by Raphael Megzari 5b0a3115 47716842

+4 -4
+4 -4
doc/languages-frameworks/rust.section.md
··· 131 131 This will retrieve the dependencies using fixed-output derivations from 132 132 the specified lockfile. 133 133 134 - Alternatively, `cargoLock.lockFileContents` can be set to a string of 135 - the contents of a `Cargo.lock` file, for example if you need to 136 - preprocess or generate the file as part of your build: 137 - 134 + One caveat is that `Cargo.lock` cannot be patched in the `patchPhase` 135 + because it runs after the dependencies have already been fetched. If 136 + you need to patch or generate the lockfile you can alternatively set 137 + `cargoLock.lockFileContents` to a string of its contents: 138 138 139 139 ```nix 140 140 rustPlatform.buildRustPackage {