diff options
author | Robin Stumm <serverkorken@gmail.com> | 2021-09-22 12:51:05 +0200 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-09-22 20:32:19 +0900 |
commit | 5b0a3115c8ee42494ae0580b50702e090a017446 (patch) | |
tree | 9fcdb72fa99759d98d2d3a7c6e619713eafc60d0 /doc/languages-frameworks/rust.section.md | |
parent | 4771684208a6beed8293baabfdaac103552614e7 (diff) |
doc: rust: rephrase paragraph about `cargoLock.lockFileContents`
mentioning that `Cargo.lock` cannot be patched in the `patchPhase`
Diffstat (limited to 'doc/languages-frameworks/rust.section.md')
-rw-r--r-- | doc/languages-frameworks/rust.section.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index cb14a7726e426..b2f045b11b321 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -131,10 +131,10 @@ rustPlatform.buildRustPackage { This will retrieve the dependencies using fixed-output derivations from the specified lockfile. -Alternatively, `cargoLock.lockFileContents` can be set to a string of -the contents of a `Cargo.lock` file, for example if you need to -preprocess or generate the file as part of your build: - +One caveat is that `Cargo.lock` cannot be patched in the `patchPhase` +because it runs after the dependencies have already been fetched. If +you need to patch or generate the lockfile you can alternatively set +`cargoLock.lockFileContents` to a string of its contents: ```nix rustPlatform.buildRustPackage { |